PATCH/repos/{owner}/{repo}/import/authors/{author_id}Deprecated

Update a commit author's identity mapping

Updates the Git identity mapped to a commit author in an imported repository. Use email and name to change the author's identity before pushing new commits. This operation is closing down and will be removed on April 12, 2024.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

3 parameters · 2 body fields
ownerstringrequired
The account that owns the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
author_idintegerrequired
The integer identifier of the commit author to update.

Optional author identity fields to update.

emailstringoptional
The new Git author email.
namestringoptional
The new Git author name.

4 status codes
200Returns the updated commit author, including its identifier, remote identity, email, name, and URLs.
idintegerrequired
remote_idstringrequired
remote_namestringrequired
emailstringrequired
namestringrequired
urlstringrequired
import_urlstringrequired
404Returned when the requested repository or author cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
422Returned when validation fails or the endpoint has been spammed.
messagestringrequired
documentation_urlstringrequired
errorsarray<object>optional
503Returned when the service is unavailable due to maintenance.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the repository or author cannot be found. A 422 is returned when validation fails or the endpoint has been spammed; a 503 is returned while the service is under maintenance. The owner, repo, and author_id path parameters must identify the repository and author to update; email and name are optional fields for the new identity.