Skip to main content

Check out Port for yourselfย 

Update an action's permissions

PATCH 

/v1/actions/:action_identifier/permissions

This route allows you to update the permissions of a self-service action.

To learn more about action RBAC, check out the documentation.

Requestโ€‹

Path Parameters

    action_identifier stringrequired

    Possible values: non-empty

    The identifier of the action you want to update permissions for.

Body

    execute

    object

    An object used to define who can execute the action.

    usersstring[]

    The email addresses of the users who can execute the action.

    rolesstring[]

    The roles that can execute the action.

    teamsstring[]

    The names of the teams whose members can execute the action.

    ownedByTeamboolean

    Relevant only for DAY-2/DELETE actions. If true, any member of the team that the entity belongs to can execute the action.

    policy

    object

    An optional custom policy the determines if action execution is allowed.
    See instructions and examples here.

    queries

    object

    required

    One or more queries to fetch data from your software catalog.

    property name*

    object

    combinatorrequired

    Possible values: [and, or]

    rules

    object[]

    required

  • Array [

  • anyOf

    propertystringrequired
    operatorrequired

    Possible values: [>, >=, <, <=]

    valuenumberrequired
  • ]

  • conditionsstring[]required

    JQ expressions that run against the provided queries, and resolve to a boolean value (true = allowed to execute).

    Possible values: >= 1

    approve

    object

    An object used to define who can approve the action.

    usersstring[]

    The email addresses of the users who can approve the action.

    rolesstring[]

    The roles that can approve the action.

    teamsstring[]

    The names of the teams whose members can approve the action.

    policy

    object

    An optional custom policy the determines who can approve the action.
    See instructions and examples here.

    queries

    object

    required

    One or more queries to fetch data from your software catalog.

    property name*

    object

    combinatorrequired

    Possible values: [and, or]

    rules

    object[]

    required

  • Array [

  • anyOf

    propertystringrequired
    operatorrequired

    Possible values: [>, >=, <, <=]

    valuenumberrequired
  • ]

  • conditionsstring[]required

    JQ expressions that run against the provided queries, and resolve to an array of strings (email addresses of users who can approve the action).

    Possible values: >= 1

Responsesโ€‹

Success