| Requires any of the roles: | Worker, Agent, Administrator |
| GET,PUT,OPTIONS | /v1/ContactCategory/ |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ContactGUID | body | Guid | No | |
| CategoryId | body | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| ContactCategories | form | List<ContactCategory> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | int | No | |
| Name | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/ContactCategory/ HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ContactGUID":"00000000000000000000000000000000","CategoryId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ContactCategories":[{"Id":0,"Name":"String"}]}