TwentyThree Developer APIAPI Method: /api/photo/reset-token

API Method: /api/photo/reset-token

Last updated on June 26, 2016.

Reset the token for a photo or a video.

Parameters

ParameterDescription
photo_id (required)
grace_minutes (optional) Optionally specifies a number of minutes to allow the old token to be used for alongside the new token.

Permission level

The minimum required permission level is:

write

Example XML Response

<response status="ok" permission_level="write" 
  message="The token was reset" cached="0">
  <photo_id>12345</photo_id>
  <token>abcdef1234</token>
</response>

Example JSON Response

{
  "status": "ok", 
  "message":"The token was reset",
  "permission_level":"anonymous",
  "cached":"0",
  "live":{"photo_id": "12345", "token": "abcdef1234"},
  "p": "1",
  "size": "1",
  "site": {...},
  "endpoint": "/api/photo/reset-token"
}