Skip to main content

Patch an entitlement​

This API updates an existing entitlement using JSON Patch syntax.

The following fields are patchable: requestable, privileged, segments, owner, name, description.

When you're patching owner, only owner type and owner id must be provided. Owner name is optional, and it won't be modified. If the owner name is provided, it should correspond to the real name. The only owner type currently supported is IDENTITY.

A token with ORG_ADMIN or SOURCE_ADMIN authority is required to call this API.

Path Parameters
  • id string required

    ID of the entitlement to patch

Request Body array
  • op string required

    Possible values: [add, remove, replace, move, copy, test]

    The operation to be performed

  • path string required

    A string JSON Pointer representing the target path to an element to be affected by the operation

  • value object

    The value to be used for the operation, required for "add" and "replace" operations

    anyOf

  • string
Responses

Responds with the entitlement as updated.


Schema
  • id string

    The entitlement id

  • name string

    The entitlement name

  • created date-time

    Time when the entitlement was created

  • modified date-time

    Time when the entitlement was last modified

  • attribute string

    The entitlement attribute name

  • value string

    The value of the entitlement

  • sourceSchemaObjectType string

    The object type of the entitlement from the source schema

  • privileged boolean

    Default value: false

    True if the entitlement is privileged

  • cloudGoverned boolean

    Default value: false

    True if the entitlement is cloud governed

  • description string

    The description of the entitlement

  • requestable boolean

    Default value: false

    True if the entitlement is requestable

  • attributes object

    A map of free-form key-value pairs from the source system

  • source object
  • id string

    The source ID

  • type string

    The source type, will always be "SOURCE"

  • name string

    The source name

  • owner object

    Simplified DTO for the owner object of the entitlement

  • id string

    The owner id for the entitlement

  • name string

    The owner name for the entitlement

  • type string

    Possible values: [IDENTITY]

    The type of the owner. Initially only type IDENTITY is supported

  • directPermissions object[]
  • rights string[]

    All the rights (e.g. actions) that this permission allows on the target

  • target string

    The target the permission would grants rights on.

  • segments string[]

    List of IDs of segments, if any, to which this Entitlement is assigned.

  • manuallyUpdatedFields object

    Object contains entitlement manually updated fields. Field value is true if is was updated manually via entitlement import csv or patch endpoint. Field value is false if that property value has not been changed after first entitlement aggregation. Values for all manually updatable fields must be specified. For now only two entitlement fields support this: DISPLAY_NAME and DESCRIPTION.

  • DISPLAY_NAME boolean

    Default value: false

    True if the entitlements name was updated manually via entitlement import csv or patch endpoint. False means that property value has not been change after first entitlement aggregation. Field refers to Entitlement response schema > name property.

  • DESCRIPTION boolean

    Default value: false

    True if the entitlement description was updated manually via entitlement import csv or patch endpoint. False means that property value has not been change after first entitlement aggregation. Field refers to Entitlement response schema > description property.

Loading...