English
cURL
curl "https://api.phrase.com/v2/projects/:project_id/screenshots/:id" \ -u USERNAME_OR_ACCESS_TOKEN \ -X PATCH \ -F branch=my-feature-branch \ -F name=A%20screenshot%20name \ -F description=A%20screenshot%20description \ -F filename=@/path/to/my/screenshot.png
{ "id": "d2e056aa9e70b01121f41693e344f5ee", "name": "A screenshot name", "description": "A screenshot description", "screenshot_url": "http://assets.example.com/screenshot.png", "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z", "markers_count": 0 }
Update an existing screenshot.
Enter your token in the format token TOKEN
token TOKEN
Two-Factor-Authentication token (optional)
Project ID
ID
specify the branch to use
"my-feature-branch"
Name of the screenshot
"A screenshot name"
Description of the screenshot
"A screenshot description"
Screenshot file
"/path/to/my/screenshot.png"
OK
Was this page helpful?