Skip to main content

Check out Port for yourselfย 

Approve an action run

PATCH 

/v1/actions/runs/:run_id/approval

This route allows you to approve or decline a request to execute an action that requires approval.

To learn more about manual approval for actions, check out the documentation.

Requestโ€‹

Path Parameters

    run_id stringrequired

    The identifier of the action run you want to approve/decline.

Body

required

    statusstringrequired

    Possible values: [APPROVE, DECLINE]

    descriptionstring

    A description and/or reason for the given status.

Responsesโ€‹

Approved/declined successfully.

Schema

    okanyrequired

    Possible values: [true]

    run

    object

    idstringrequired

    blueprint

    object

    identifierstringrequired
    titlestring | null
    iconstring | null
    deletedboolean

    entity

    object

    identifierstringrequired
    titlestring | null
    iconstring | null
    deletedboolean

    action

    object

    required

    identifierstringrequired
    titlestring | null
    iconstring | null
    deletedboolean
    propertiesobjectrequired
    endedAtdate-time
    sourcestring | objectrequired

    requiredApproval

    boolean,object

    required

    typestringrequired

    Possible values: [ALL, ANY]

    statusstringrequired
    statusLabelstring | null
    linkstring[]
    summarystring

    approval

    object,null

    descriptionstring
    userIdstring | null
    statestring

    payload

    object,null

    typestring
    urluri
    agentboolean
    synchronizedboolean
    methodstring

    headers

    object

    RUN_IDstring

    body

    object

    port_context

    object

    runIdstring
    responseundefined[]
    createdBystring
    updatedBystring
    createdAtdate-time
    updatedAtdate-time