Update a File

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

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 Request

PUT /api/0/projects/the-interstellar-jurisdiction/pump-station/releases/17642328ead24b51867165985996d04b29310337/files/3/ HTTP/1.1
Host: sentry.io
Authorization: Bearer <token>
Content-Type: application/json

{
  "name": "/demo/goodbye.txt"
}

Example Response

HTTP/1.1 200 OK
Content-Length: 220
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
Allow: GET, PUT, DELETE, HEAD, OPTIONS
X-Frame-Options: deny
Content-Type: application/json

{
  "dateCreated": "2018-11-06T21:20:22.894Z", 
  "dist": null, 
  "headers": {
    "Content-Type": "text/plain; encoding=utf-8"
  }, 
  "id": "3", 
  "name": "/demo/goodbye.txt", 
  "sha1": "94d6b21e962a9fc65889617ec1f17a1e2fe11b65", 
  "size": 15
}