Delete Site – Infra API – MediaKind
Delete Site
del https://app.mk.io/api/v1/projects/:project_name/infra/sites/:name
Delete a site. If the site does not exist, this API will return a 204. To learn more about sites, read Site Concept.
RBAC Capability Required: infra.site.delete
Authentication
Authorization Bearer
Bearer authentication of the form Bearer <token>, where token is your
auth token.
Path parameters
project_namestring Requirednamestring Required
Response
- 200 Site deleted.
No response body.
- 204 Nothing to delete.
No response body.
Errors
400 Bad Request
errorobject ErrorDetail Required
Pertinent information about the errorcodestring Required
The error code.detailstring Required
The error message.extraDetailmap from strings to any Optional
Extra information regarding this error.refstring Required
A reference to the request that caused the error.statusinteger Required
The HTTP status code
401 Unauthorized
errorobject ErrorDetail Required Pertinent information about the errorcodestring Required
The error code.detailstring Required
The error message.extraDetailmap from strings to any Optional
Extra information regarding this error.[any key]anyrefstring Required
A reference to the request that caused the error.statusinteger Required
The HTTP status code
403 Forbidden
errorobject ErrorDetail Required
Pertinent information about the errorcodestring Required
The error code.detailstring Required
The error message.extraDetailmap from strings to any Optional
Extra information regarding this error.refstring Required
A reference to the request that caused the error.statusinteger Required
The HTTP status code
404 Not Found
errorobject ErrorDetail Required
Pertinent information about the errorcodestring Required
The error code.detailstring Required
The error message.extraDetailmap from strings to any Optional
Extra information regarding this error.refstring Required
A reference to the request that caused the error.statusinteger Required
The HTTP status code
409 Site is referenced by existing flows or devices.
errorobject ErrorDetail Required Pertinent information about the errorcodestring Required
The error code.detailstring Required
The error message.extraDetailmap from strings to any Optional
Extra information regarding this error.refstring Required
A reference to the request that caused the error.statusinteger Required
The HTTP status code
429 Too Many Requests
errorobject ErrorDetail Required
Pertinent information about the errorcodestring Required
The error code.detailstring Required
The error message.extraDetailmap from strings to any Optional
Extra information regarding this error.refstring Required
A reference to the request that caused the error.statusinteger Required
The HTTP status code
500 Internal Server Error
errorobject ErrorDetail Required
Pertinent information about the errorcodestring Required
The error code.detailstring Required
The error message.extraDetailmap from strings to any Optional
Extra information regarding this error.refstring Required
A reference to the request that caused the error.statusinteger Required
The HTTP status code