Skip to main content
PATCH
/
interventions
/
v2
/
mb
/
execute
Execute intervention with signature
curl --request PATCH \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/interventions/v2/mb/execute \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: <content-type>' \
  --header 'X-Session-Token: <x-session-token>' \
  --data '
{
  "firstName": "Provider name",
  "lastName": "Provider name",
  "signature": {
    "name": "example.jpg",
    "mimeType": "image/jpeg",
    "size": 1024
  },
  "email": "[email protected]",
  "providerActionComment": "Action comment from the provider",
  "comment": "General comment from the provider"
}
'
{
  "presignedUrl": "https://bucket.s3.amazonaws.com/1"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
enum<string>
required

Content type, must be "application/json".

Available options:
application/json
X-Session-Token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Body

application/json
firstName
string
required

Provider name.

Maximum string length: 250
Example:

"Provider name"

lastName
string
required

Provider name.

Maximum string length: 250
Example:

"Provider name"

signature
object
required
email
string

Provider email.

Maximum string length: 250
providerActionComment
string

Action comment from the provider.

Maximum string length: 2500
Example:

"Action comment from the provider"

comment
string

General comment from the provider.

Maximum string length: 2500
Example:

"General comment from the provider"

Response

200 - application/json

Intervention executed successfully

presignedUrl
string
required

The presigned URL to download the file from.

Example:

"https://bucket.s3.amazonaws.com/1"