Search + K

Command Palette

Search for a command to run...

Sign In

Map a commit author

Deprecated
PATCH /repos/{owner}/{repo}/import/authors/{author_id}
Copy endpoint
https://api.github.com

Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository.

[!WARNING] Endpoint closing down notice: Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the changelog.

Parameters

path Path Parameters

Name Type
owner required

The account owner of the repository. The name is not case sensitive.

string
repo required

The name of the repository without the .git extension. The name is not case sensitive.

string
author_id required
number

Request Body

application/json
{ email?: string;name?: string; }

Responses

200 application/json

Response

interface PorterAuthor {
id: number;
remote_id: string;
remote_name: string;
email: string;
name: string;
url: string;
import_url: string;
}

Client Errors

404 application/json

Resource not found

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}
422 application/json

Validation failed, or the endpoint has been spammed.

interface ValidationError {
message: string;
documentation_url: string;
errors?: {
resource?: string;
field?: string;
message?: string;
code: string;
index?: number;
value?: string[] | string | number | null;
}
[]
;
}

Server Errors

503 application/json

Unavailable due to service under maintenance.

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}