Crate owners removal endpoint

This endpoint allows to remove owner privileges for some authors of a given crate.

You need to be an owner of that crate in order to use this endpoint.

Endpoint URL: /api/v1/crates/<name>/owners
HTTP Method: DELETE
Endpoint Type: Authenticated

HTTP Path Parameters

This endpoint accepts the following path parameters (as shown in the endpoint's URL):

  • (required) name: The name of the crate (like serde_json).

HTTP Request Body

The request body must be a JSON object of the following shape:

{
    // Array of user emails
    "users": [
        "john.doe@example.com",
        "nicolas@polomack.eu"
    ]
}

Responses

Status: 200 OK

Body:

Currently, the registry will return an object of the following shape:

{
    // Whether the operation went well.
    "ok": true,
    // A human-displayable message describing the operation's outcome.
    "msg": "John Doe and Nicolas Polomack has been removed from authors",
}