For AI agents: this page in Markdown: https://www.pubnub.com/docs/admin-api/update-relationship-class-with-complete-resource-replacement.md. Documentation index: https://www.pubnub.com/llms-full.txt.
Update relationship class with complete resource replacement
PUT/v2/datasync/subkeys/:subKey/relationship-classes/:relationshipClass/versions/:relationshipClassVersion
Replaces the description of one relationship class version of this subscribe key
and, when properties is sent, its class properties. Cardinality and the entity
class each side accepts do not change.
Permissions: datasync:write on keyset
Request
Example
{
"data": {
"description": "Represents a parent-child relationship between entities",
"directed": true,
"cardinality": "one-to-many",
"entityAClass": "Parent",
"entityBClass": "Child",
"properties": [
{
"name": "role",
"path": "/payload/role",
"valueKind": "string",
"filtering": "full"
}
]
},
"meta": {
"next_cursor": "string",
"has_next": true,
"prev_cursor": "string",
"has_prev": false,
"limit": 20
}
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
"Accept header value is not acceptable. Supported values are [application/json]"Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score",
"location": {
"offset": 6,
"length": 5
}
}
]
}