Request Detail:
- Base URL: {host}/ASMSAPI/
- URI: api/v9/article/{id}/relation
- Type: POST
-
Required headings:
- Content-Type: application/json
- X-Authorization: Bearer {token}
URL Description
- {host}: It represents the domain of the environment in which the API is located.
- ASMSAPI/: Fixed API prefix.
- URI: Specific endpoint for the request.
⚐ EXAMPLE URL:
https://{host}/ASMSAPI/api/v9/article/{id}/relation
Parameters:
Name | Guy | Obligatory | Description |
---|---|---|---|
Id | Numerical | Yes | Item identifier. |
ItemType | String | Yes | Type of item to be related. |
RelatedItemId | Numerical | Yes | Identifier of the item to be related. |
RelatedItemType | String | Yes | Related item type. |
RelationTypeId | Numerical | Yes | Identifier of the type of relationship. |
TypeIsReverse | String | Yes | Address of the relationship. |
Examples of uri:
api/v9/article/1752/relation
Body of the petition:
{
"itemType": "Article",
"relatedItemType": "Article",
"relatedItemId": 32,
"relationTypeId": 51,
"typeIsReverse": "false"
}
Answer:
The service will return a Json with the following structure:
{
"result": true
}
Error messages:
Code | HTTP status | Error Message |
---|---|---|
500 | InternalServerError | FailureAddRelation |