/r/{repoId}/events/{id}

PUT
https://sample-api.d-velop.cloud
Changing the calling sequence within an event
If you want to make changes to an event, you can use this request. However, you can only change the order of the webhooks. To make changes to a webhook, you must use the webhook resource.
Parameters
repoId/string/required
The unique ID of the repository.
id/string/required
The unique ID of the event.
Responses
204
The event was changed successfully.
No content
400
Invalid data was transferred.
Content
Media type: application/json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
Media type: application/hal+json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
404
The event with the specified ID could not be determined.
Content
Media type: application/json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
Media type: application/hal+json
{
  "code": {
    "type": "integer",
    "format": "int32",
    "example": 240100
  },
  "reason": {
    "type": "string",
    "nullable": true,
    "example": "Reason why the request failed."
  }
}
Show operation

Language

const options = {
  method: 'PUT',
  headers: {accept: 'application/json', 'content-type': 'application/hal+json'},
  body: '{"order":["05F3AC34-EF06-43CE-81B6-11CA7E5E4C9E","1D7341B4-547C-4FFD-A309-68B871959CD8","E5FE04F2-6432-469F-9191-8C1DCCEE3752"]}'
};

fetch('https://example.com/dmsconfig/r/REPOID/events/ID', options)
  .then(response => response.json())
  .then(response => console.log(response))
  .catch(err => console.error(err));