Hierarchy

  • CustomAttributeDefinitionsService

Constructors

Methods

  • Create a custom attribute definition for provided application domain Use this API to create a custom attribute definition for provided application domain.

    Token Permissions: [ custom_attribute:create:* ]

    Returns

    CustomAttributeDefinitionResponse Created a custom attribute definition in provided application domain and Returns the newly saved custom attribute definition in the response body.

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          applicationDomainId: string;
          requestBody: CustomAttributeDefinition;
          xContextId?: string;
      }
      • applicationDomainId: string

        The ID of the application domain *

      • requestBody: CustomAttributeDefinition

        The custom attribute definition. *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<CustomAttributeDefinitionResponse>

  • Delete a custom attribute definition Use this API to delete a custom attribute definition.

    Token Permissions: [ custom_attribute:write ]

    Returns

    void

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          id: string;
          xContextId?: string;
      }
      • id: string

        The ID of the custom attribute definition *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<void>

  • Delete a custom attribute definition of provided application domain Use this API to delete a custom attribute definition by given application domain.

    Token Permissions: [ custom_attribute:delete:* ]

    Returns

    void

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          applicationDomainId: string;
          xContextId?: string;
      }
      • applicationDomainId: string

        The ID of the application domain *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<void>

  • Delete a custom attribute definition of provided application domain Use this API to delete a custom attribute definition of given application domain.

    Token Permissions: [ custom_attribute:delete:* ]

    Returns

    void

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          applicationDomainId: string;
          customAttributeId: string;
          xContextId?: string;
      }
      • applicationDomainId: string

        The ID of the application domain *

      • customAttributeId: string

        The ID of the custom attribute definition *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<void>

  • Get a custom attribute definition Use this API to get a single custom attribute definition by its ID.

    Token Permissions: [ event_designer:access ]

    Returns

    CustomAttributeDefinitionResponse The custom attribute definition.

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          id: string;
          xContextId?: string;
      }
      • id: string

        The ID of the custom attribute definition. *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<CustomAttributeDefinitionResponse>

  • Get a list of custom attribute definitions Use this API to get a list of custom attribute definitions that match the given parameters.

    Token Permissions: [ event_designer:access ]

    Returns

    CustomAttributeDefinitionsResponse Get a list of custom attribute definitions and the accompanying metadata.

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          associatedEntityTypes?: string[];
          pageNumber?: number;
          pageSize?: number;
          xContextId?: string;
      }
      • Optional associatedEntityTypes?: string[]

        Match only custom attribute definitions with the given associated entity type names separated by commas. *

      • Optional pageNumber?: number

        The page number to get. *

      • Optional pageSize?: number

        The number of custom attribute definitions to get per page. *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<CustomAttributeDefinitionsResponse>

  • Get a list the custom attribute definitions of provided application domain Use this API to get a list of custom attribute definitions that match the given parameters.

    Token Permissions: [ custom_attribute:get:* ]

    Returns

    CustomAttributeDefinitionsResponse Get a list of custom attribute definitions of a given application domain id.

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          applicationDomainId: string;
          pageNumber?: number;
          pageSize?: number;
          xContextId?: string;
      }
      • applicationDomainId: string

        Match only custom attribute definitions with the given application domain Id *

      • Optional pageNumber?: number

        The page number to get. *

      • Optional pageSize?: number

        The number of custom attribute definitions to get per page. *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<CustomAttributeDefinitionsResponse>

  • Update a custom attribute definition Use this API to update a custom attribute definition. You can only update the associated entity types.

    Token Permissions: [ custom_attribute:write ]

    Returns

    CustomAttributeDefinitionResponse The updated custom attribute definition.

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          id: string;
          requestBody: CustomAttributeDefinition;
          xContextId?: string;
      }
      • id: string

        The ID of the custom attribute definition to update. *

      • requestBody: CustomAttributeDefinition

        The custom attribute definition. *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<CustomAttributeDefinitionResponse>

  • Update a custom attribute definition for provided application domain Use this API to update a custom attribute definition for provided application domain.

    Token Permissions: [ custom_attribute:update:* ]

    Returns

    CustomAttributeDefinitionResponse Updated a custom attribute definition in provided application domain and Returns the newly saved custom attribute definition in the response body.

    Throws

    ApiError

    Parameters

    • __namedParameters: {
          applicationDomainId: string;
          customAttributeId: string;
          requestBody: CustomAttributeDefinition;
          xContextId?: string;
      }
      • applicationDomainId: string

        The ID of the application domain *

      • customAttributeId: string

        The ID of the custom attribute definition *

      • requestBody: CustomAttributeDefinition

        The custom attribute definition. *

      • Optional xContextId?: string

        Optional context id the request is running. *

    Returns CancelablePromise<CustomAttributeDefinitionResponse>