Skip to content

Commit 792c936

Browse files
committed
clean up status codes table
1 parent e9ac63f commit 792c936

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/unify/identity-resolution/delete-profile-identifier-api.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The API accepts one identifier per request.
7575

7676
Send requests to this endpoint:
7777

78-
```
78+
```bash
7979
POST https://{HOST_NAME}/v1/spaces/{SPACE_ID}/collections/users/profiles/user_id:{USER_ID_VALUE}/external_ids/delete
8080
```
8181

@@ -120,23 +120,23 @@ curl --location --request POST 'https://profiles.segment.com/v1/spaces/spa_abc12
120120
```
121121
## Responses and error codes
122122

123-
<!-- add some transition here, code errors as inline-->
124-
125-
| HTTP Code | Code | Message |
126-
| --------- | -------------------- | --------------------------------------------------------------------- |
127-
| 200 | success | external identifier has been deleted |
128-
| 400 | unsupported_eid_type | unsupported external id type |
129-
| 400 | bad_request | missing required parameters in URL |
130-
| 400 | bad_request | invalid URL: valid `user_id` is required. unsupported `<id type>` |
131-
| 400 | bad_request | only one external_id can be deleted at a time |
132-
| 400 | bad_request | invalid collection: `<collection>` |
133-
| 400 | bad_request | external id specification must differ from lookup id |
134-
| 401 | unauthorized | the specified token is invalid |
135-
| 403 | forbidden | Deleted identifier not activated for space_id `<space_id>` |
136-
| 404 | not_found | the resource was not found |
137-
| 404 | eid_not_found | external identifier not found |
138-
| 404 | source_id_not_found | no source attached to space_id `<space_id>` |
139-
| 429 | rate_limit_error | Attempted to delete more than 100 IDs per second for a single profile |
123+
The API returns the following HTTP status codes:
124+
125+
| HTTP Code | Code | Message |
126+
| --------- | ---------------------- | ----------------------------------------------------------------------- |
127+
| `200` | `success` | External identifier has been deleted. |
128+
| `400` | `unsupported_eid_type` | Unsupported external id type. |
129+
| `400` | `bad_request` | Missing required parameters in URL. |
130+
| `400` | `bad_request` | Invalid URL: valid `user_id` is required. Unsupported `<id type>`. |
131+
| `400` | `bad_request` | Only one external_id can be deleted at a time. |
132+
| `400` | `bad_request` | Invalid collection: `<collection>`. |
133+
| `400` | `bad_request` | External id specification must differ from lookup id. |
134+
| `401` | `unauthorized` | The specified token is invalid. |
135+
| `403` | `forbidden` | Deleted identifier not activated for space_id `<space_id>`. |
136+
| `404` | `not_found` | The resource was not found. |
137+
| `404` | `eid_not_found` | External identifier not found. |
138+
| `404` | `source_id_not_found` | No source attached to space_id `<space_id>`. |
139+
| `429` | `rate_limit_error` | Attempted to delete more than 100 IDs per second for a single profile. |
140140

141141
## Limitations and considerations
142142

0 commit comments

Comments
 (0)