Update a PSIDref List
Follow the format below to update a PSIDref List
Overview:
There are 2 ways to update the PSIDref list.
1: You may change 1 item in the list using a PATCH call.
2: You may replace the entire contents of the list using a PUT api call.
PUT endpoint is not yet available in dev.
Option 1 - PATCH API Call:
Valid operations for the PATCH endpoint are "add" & "remove" - "replace" operations will be ignored.
The entire PSIDref list will be returned in the response with http code 200.
Sample Request for Add:
PATCH surveys/:survey_id/PSIDref
{
"value":"abc",
"operation": "add"
}
Result
Response Code
200
Response Body
[
{ "psid": "75xxee23-370b-a8ye-e601-e1fzz59284c8", "url": null },
{ "psid": "94xx7b3b-4608-01y4-b908-8aezzab971e1", "url": null },
{ "psid": "24xx7db6-8507-47y9-9c67-0c6zz6244d98", "url": null },
{ "psid": "599446a6-6388-4ffe-4c37-9bdc9f6e6edc", "url": null },
{ "psid": "685330d0-a8f2-df6f-ae28-7eb89d290277", "url": null },
{ "psid": "...", "url": null }
]
Sample Request for Remove:
PATCH surveys/:survey_id/PSIDref
{
"value":"abc",
"operation": "remove"
}
Result
Response Code
200
Response Body
[
{ "psid": "75xxee23-370b-a8ye-e601-e1fzz59284c8", "url": null },
{ "psid": "94xx7b3b-4608-01y4-b908-8aezzab971e1", "url": null },
{ "psid": "24xx7db6-8507-47y9-9c67-0c6zz6244d98", "url": null },
{ "psid": "599446a6-6388-4ffe-4c37-9bdc9f6e6edc", "url": null },
{ "psid": "685330d0-a8f2-df6f-ae28-7eb89d290277", "url": null },
{ "psid": "...", "url": null }
]
Option 2 - PUT API Call:
Not yet available in dev.
The entire PSIDref list will be returned in the response with http code 200.
Sample Request:
PUT surveys/:survey_id/PSIDref
[
{ "psid": "75xxee23-370b-a8ye-e601-e1fzz59284c8" },
{ "psid": "94xx7b3b-4608-01y4-b908-8aezzab971e1" },
{ "psid": "24xx7db6-8507-47y9-9c67-0c6zz6244d98" },
{ "psid": "599446a6-6388-4ffe-4c37-9bdc9f6e6edc" },
{ "psid": "685330d0-a8f2-df6f-ae28-7eb89d290277" },
{ "psid": "..." }
]
Result
Response Code
200
Response Body
[
{ "psid": "75xxee23-370b-a8ye-e601-e1fzz59284c8", "url": null },
{ "psid": "94xx7b3b-4608-01y4-b908-8aezzab971e1", "url": null },
{ "psid": "24xx7db6-8507-47y9-9c67-0c6zz6244d98", "url": null },
{ "psid": "599446a6-6388-4ffe-4c37-9bdc9f6e6edc", "url": null },
{ "psid": "685330d0-a8f2-df6f-ae28-7eb89d290277", "url": null },
{ "psid": "...", "url": null }
]
, multiple selections available,
Related content
Creating an exclusion group
Creating an exclusion group
Read with this
Apply Multiple Survey Group to a Project
Apply Multiple Survey Group to a Project
Read with this
Edit an existing survey group
Edit an existing survey group
Read with this
Apply Survey Group to a Project
Apply Survey Group to a Project
Read with this
GET PSIDref List
GET PSIDref List
More like this
POST PSIDEligible - Batch multiple surveys
POST PSIDEligible - Batch multiple surveys
More like this