APIs

DeleteFiles

20 views 14/01/2021 14/01/2021 sergio-souza 0

DeleteFiles

Exclui um ou mais arquivos permanentemente.

Payload de entrada
{
  "deleteFileInput": [
    {
      "domainName": "string",
      "serviceName": "string",
      "targetObject": "string",
      "areaSecret": "string",
      "fileName": "string",
      "styles": ["string"],
      "failIfNotExists": boolean
    }
  ]
}
Request
curl --location --request POST "https://api.senior.com.br/platform/blob_service/actions/deleteFiles" --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer {token}" --data-raw "{ 'deleteFileInput ': [ { 'domainName ': 'string ', 'serviceName ': 'string ', 'targetObject ': 'string ', 'areaSecret ': 'string ', 'fileName ': 'string ', 'styles ': [ 'string ' ], 'failIfNotExists ': boolean } ]}"
Response
  • 200 Ok
{
  "success": true
}
  • 403 Permissão negada
  • 401 Unauthorized
{
    "error_description": "The access token is invalid or has expired",
    "error": "invalid_token"
}

Este artigo foi útil para você?