Updates an OAuth2 credential with a specified token ID.
OAuth2 credential resource.
OAuth2 credential updated.
code required | string OAuth2 code provided by the authentication server. | ||||||||
scopes required | Array of strings List of URLs that are granted OAuth2 access. | ||||||||
service required | string Name of the service to which the OAuth2 credential relates. | ||||||||
hash | string <= 50 characters Unique resource ID. Defaults to UUID v4. | ||||||||
status | string Status of the credential.
| ||||||||
deactivationTime | string <date-time> Date and time when the credential is deactivated. | ||||||||
accessToken | string OAuth2 access token. | ||||||||
refreshToken | string OAuth2 refresh token. | ||||||||
Array of objects (SelfLink) Related links. | |||||||||
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
Conflict.
Invalid data sent.
{- "status": "active",
- "service": "google-sheets",
- "code": "2/smAHUUr9jOxw_IOp47Y_dH1r2Y",
}
{- "hash": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "status": "active",
- "deactivationTime": "2019-08-24T14:15:22Z",
- "service": "google-sheets",
- "code": "2/smAHUUr9jOxw_IOp47Y_dH1r2Y",
- "accessToken": "zw34.PltIPtJZHmEgZS9R4RoGpzaRrJd5MYjZIONQ2MjWSCj7N7Iqp9BXXFIbkhDRfAPs6cB1pKtTjLUgb3ofzgHUprJfnRiMDTnB_yPMK7vtgobCX4SUs7fhrR6bdApq",
- "refreshToken": "2/4DPERp2EiySF6JUIOTS4jM5f0JmLG2gPcpGaWYTGU94",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}