Revoke Access from a Tugboat Repository

Revoke a Tugboat API Key's user or admin access from a repository.

Arguments

  • repo - Required
    The ID of the repository to revoke access from.

  • users - Optional
    A list of API Key IDs that should have user-level access to the repository. This can be a single ID, or an array of IDs. The specified values are removed from the list of users assigned to the repository.

  • admins - Optional
    A list of API Key IDs that should have admin-level access to the repository. This can be a single ID, an array of IDs. The specified values are removed from the list of admins assigned to the repository.

Example

socket.emit('tugboat', 'repos', 'revoke', args, callback);

Output

single

{
    "updatedAt": "2017-02-17T20:33:38.452Z",
    "createdAt": "2017-02-17T20:33:38.452Z",
    "name": "my-github-project",
    "agent": "dev.tugboat.qa",
    "_id": "58a75e22ddccc30001a26086",
    "size": 0,
    "quota": 0,
    "admins": [],
    "users": [],
    "project": "58a758b534f0210001cf9439",
    "id": "58a75e22ddccc30001a26086"
}

array

[
    {
        "updatedAt": "2017-02-17T20:33:38.452Z",
        "createdAt": "2017-02-17T20:33:38.452Z",
        "name": "my-github-project",
        "agent": "dev.tugboat.qa",
        "_id": "58a75e22ddccc30001a26086",
        "size": 0,
        "quota": 0,
        "admins": [],
        "users": [],
        "project": "58a758b534f0210001cf9439",
        "id": "58a75e22ddccc30001a26086"
    }
]

Errors

  • 1005: No Repositories Found
    Returned if the requested repositories do not exist, or the requestor does not have permission to update them.

  • 1006: No Repository ID Provided
    The required repo argument was not included in the request.

results matching ""

    No results matching ""