/
2318: Update specific entity preferences

2318: Update specific entity preferences

Update entity preference subscription status for given preferences

Endpoint ID:2318
Method:

PUT

URL:

/preferences/entity/id/{entityID}

/preferences/entity/ext-key/{ext-key}/{ext-type}


entityIDRubiq master ID that uniquely identifies the entity

ext-keyExternal key that uniquely identifies the entity

ext-typeType of external key
Request body:

A JSON object containing the following required propertes:

optIn An array of preferenceIDs of preferences that should be opted-in to

optOut An array of preferenceIDs of preferences that should be opted-out of

optOutReason The reason string which will be set for any preferences which are being opted-out of

{
    "optIn": [
        "7a6776a3-9411-4d34-9866-99aa9ac7cc27",
        "dd9eaf78-18ff-44ea-9717-25b103060643"
    ],
    "optOut": [],
    "optOutReason": "No longer interested"
}

Response body:

None

Status codes:204OK

404

The entity or preference were not found.

The following sub codes may be returned:

404.1 Entity not found

404.2 External entity reference not found

404.4 Preference "preferenceID" not found

Related content

2315: Opt-in to preference
2315: Opt-in to preference
More like this
2316: Opt-out of preference
2316: Opt-out of preference
More like this
2310: Get preference opt-in status
2310: Get preference opt-in status
More like this
2317: Update entity preferences for group
2317: Update entity preferences for group
More like this
2300: Get preferences
2300: Get preferences
More like this
2110: Update terms acceptance
2110: Update terms acceptance
More like this