Update a File

PUT /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/

Update metadata of an existing file. Currently only the name of the file can be changed.

Path Parameters:
  • organization_slug (string) – the slug of the organization the release belongs to.
  • project_slug (string) – the slug of the project to update the file of.
  • version (string) – the version identifier of the release.
  • file_id (string) – the ID of the file to update.
Parameters:name (string) – the new name of the file.
Authentication:required
Method:PUT
Path:/api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/

Example

PUT /api/0/projects/the-interstellar-jurisdiction/pump-station/releases/e48e7b5b90327ea1a4d1a4360c735eee7b536f82/files/3/ HTTP/1.1
Authorization: Bearer {base64-encoded-key-here}
Host: sentry.io
Content-Type: application/json

{
  "name": "/demo/goodbye.txt"
}
HTTP/1.1 200 OK
Allow: GET, PUT, DELETE, HEAD, OPTIONS
Content-Language: en
Content-Length: 220
Content-Type: application/json
Vary: Accept-Language, Cookie
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-Xss-Protection: 1; mode=block

{
  "sha1": "94d6b21e962a9fc65889617ec1f17a1e2fe11b65",
  "dist": null,
  "name": "/demo/goodbye.txt",
  "dateCreated": "2018-08-22T18:24:15.829Z",
  "headers": {
    "Content-Type": "text/plain; encoding=utf-8"
  },
  "id": "3",
  "size": 15
}