Cancel an invite Run in API Explorer

DELETE /v2/invites/{id}

Mark the invite as cancelled so it doesn't show up on the list of pending invites

Path parameters

  • id string Required

Responses

  • 204
  • 401 application/json

    Authentication failed

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 403 application/json

    Forbidden

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
DELETE /v2/invites/{id}
curl \
 --request DELETE 'https://hub.docker.com/v2/invites/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (403)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}
Response examples (404)
{
  "errinfo": {},
  "detail": "string",
  "message": "string"
}