Skip to main content
POST
/
relations
Create a relation
curl --request POST \
  --url https://api.example.com/relations \
  --header 'Content-Type: application/json' \
  --data '
{
  "productId": "<string>",
  "userId": "<string>",
  "resourceId": "<string>",
  "relationType": "<string>"
}
'
{}

Body

application/json
productId
string
required

The productId

userId
string
required
resourceId
string
required
relationType
string
required

Response

200 - application/json

The response is of type object.