Skip to main content

Check out Port for yourselfย 

Update an action/automation

PUT 

/v1/actions/:action_identifier

This route allows you to update an existing self-service action or automation in your Port account.

To learn more about actions and automations, check out the documentation.

Requestโ€‹

Path Parameters

    action_identifier stringrequired

    Possible values: non-empty

    The identifier of the action/automation you want to update.

Body

required

    identifierstringrequired

    The identifier of the action/automation you want to update.

    Possible values: Value must match regular expression ^[A-Za-z0-9@_.+:\\/=-]+$

    titlestring

    The new title of the action/automation.

    iconstring

    The new icon of the action/automation.

    descriptionstring

    The new description of the action/automation.

    trigger

    object

    required

    oneOf

    The trigger definition of the new action.

    operationstringrequired

    The operation type of the action.

    Possible values: [DAY-2, DELETE]

    typestringrequired

    Possible values: [self-service]

    blueprintIdentifierstring

    The identifier of the blueprint that the action is associated with.
    Note that this is optional, as actions do not have to be tied directly to a blueprint.

    userInputs

    object

    required

    The user inputs of the action.

    oneOf

    Use this option when you don't want to define a custom order/steps for the user inputs.

    properties

    object

    required

    property name*

    object

    typerequired

    Possible values: [string, number, boolean, object, array]

    format

    Possible values: [date-time, url, email, ipv4, ipv6, yaml, entity, user, team, proto, markdown]

    blueprintstring

    When using the entity format, this is the identifier of the blueprint whose entities will be selectable via this input.

    dependsOnstring[]

    The identifiers of the inputs that this input depends on. This input will be disabled until they have been given a value.

    visible

    object

    The visibility of the input. Resolves to a boolean value (true = visible).

    oneOf

    jqQuerystringrequired

    A jq query that resolves to true or false, determining the visibility of the input.

    iconstring

    The icon of the input.

    dataset

    object

    combinatorstringrequired

    The combinator to use when calculating the rules.

    Possible values: [and, or]

    rules

    object[]

    required

    Possible values: >= 1

  • Array [

  • anyOf

    operatorrequired

    Possible values: [isEmpty, isNotEmpty]

    propertystringrequired
  • ]

  • sort

    object

    Relevant only for Entity selection inputs (type = string and format = entity).
    This input allows you to sort the entities in the dropdown by a specific property.

    propertystringrequired

    The property by which to sort the entities.

    orderstringrequired

    Possible values: [ASC, DESC]

    required

    object

    The action's user inputs that must be provided by the executed user.

    oneOf

    A jq query that runs on the action's inputs and resolves to a boolean value (true = required).

    jqQuerystringrequired

    condition

    object

    Filters used to include/exclude specific entities from the action.

    typestringrequired

    Possible values: [SEARCH]

    rules

    object[]

    required

    The rules used to filter entities.

  • Array [

  • anyOf

    propertystringrequired
    operatorrequired

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

    valuenumberrequired
  • ]

  • combinatorstringrequired

    Possible values: [and, or]

    invocationMethod

    object

    required

    Details the action's backend type and details.

    oneOf

    typestringrequired

    Possible values: [KAFKA]

    payloadobject

    An object containing the action payload.

    requiredApproval

    object

    Determines whether the action requires approval before execution.
    Choose ALL to require all specified users to approve the action, or ANY to require only one.

    oneOf

    typestringrequired

    Possible values: [ANY, ALL]

    approvalNotification

    object

    The notification configuration for the approval process. Relevant only if requiredApproval is set to true.

    oneOf

    typestringrequired

    Possible values: [webhook]

    formatstring

    Possible values: [json, slack]

    urlurirequired

    The URL of the webhook.

    typestringrequired

    Possible values: [webhook, email]

    Default value: email
    publishboolean

    If true, the action will be visible to all users and available for use.

Responsesโ€‹

Success