Create a self-service role

post

/crmRestApi/resources/11.13.18.05/customerSelfServiceUsers/{UserId}/child/SelfServiceRoles

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Account ID
    The unique identifier of the account of the self-service user associated with the role.
  • Title: Contact ID
    The unique identifier of the contact record of the self-service user associated with the role.
  • Title: Login ID
    Maximum Length: 320
    The login Id of the self-service user associated with the role.
  • Title: Relationship Type
    Maximum Length: 320
    The code indicating the type of role. The list of accepted values is defined in the lookup type ORA_SVC_CSS_REL_TYPE_CD.
  • Title: Request Type
    Maximum Length: 30
    The code indicating the type of registration request. The list of accepted values is defined in the lookup type ORA_SVC_CSS_REL_TYPE_CD.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : customerSelfServiceUsers-SelfServiceRoles-item-response
Type: object
Show Source
  • Title: Account ID
    The unique identifier of the account of the self-service user associated with the role.
  • Title: Account
    Read Only: true
    Maximum Length: 360
    The name of the account of the self-service user associated with the role.
  • Title: Account Party Number
    Read Only: true
    Maximum Length: 30
    The unique identifier of the account of the self-service user associated with the role.
  • Title: Can Delete
    Read Only: true
    Default Value: true
    Indicates whether the record can be deleted.
  • Title: Can Update
    Read Only: true
    Default Value: false
    Indicates whether the record can be updated. The default value is false.
  • Title: Contact ID
    The unique identifier of the contact record of the self-service user associated with the role.
  • Title: Name
    Read Only: true
    Maximum Length: 360
    The name of the contact record of the self-service user associated with the role.
  • Title: Contact Party Number
    Read Only: true
    Maximum Length: 30
    The unique identifier of the contact record of the self-service user associated with the role.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the role record.
  • Title: Creation Date
    Read Only: true
    The date when the role record was created.
  • Title: Email
    Read Only: true
    Maximum Length: 320
    The email address of the self-service user associated with the role.
  • Title: End Date
    Read Only: true
    The date when the role was deleted from the user.
  • Title: Last Updated Date
    Read Only: true
    The date when the role record was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The sign in name of the user who last updated the role record.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    The global user identifier of the user who last updated the role record.
  • Links
  • Title: Login ID
    Maximum Length: 320
    The login Id of the self-service user associated with the role.
  • Title: Registration ID
    Read Only: true
    The unique identifier of the self-service registration request whose approval was used to grant the role.
  • Title: Relationship Type
    Maximum Length: 320
    The code indicating the type of role. The list of accepted values is defined in the lookup type ORA_SVC_CSS_REL_TYPE_CD.
  • Title: Role Value
    Read Only: true
    Maximum Length: 80
    The description of the role type.
  • Title: Request Type
    Maximum Length: 30
    The code indicating the type of registration request. The list of accepted values is defined in the lookup type ORA_SVC_CSS_REL_TYPE_CD.
  • Title: Role ID
    Read Only: true
    The unique identifier of the role.
  • Title: Start Date
    Read Only: true
    The date when the role is assigned to the self-service user.
Back to Top