{% extends "_layout.html" %} {% set title = "Not permitted on this job" %} {% set status = "403 Forbidden" %} {% set description = "You can read this job and may not act on it." %} {% block main %}

A write on a job you can read and may not act on: an upload grant, a submit, a cancel or a DELETE on a job you do not own — where, for a cancel or a delete, you also do not hold the owner role in the job’s project. For a CI credential bound to a project, also an upload grant or a submit on a job no credential bound to that project created, such as one its person created in another session. Also a create naming an archived project you are a member of, with detail saying it is archived.

What to do

  1. Stop, and do not offer that action on that job again.
  2. Only the job’s owner may ask for its upload grant or submit it, and a CI credential bound to a project only for a job a credential bound to that project created. Only the owner, and a holder of the owner role in its project, may cancel or delete it. Ask one of them.

The body

{
  "type":     "https://sc.example.com/server-errors/not-permitted",
  "title":    "Not permitted on this job",
  "status":   403,
  "detail":   "...",
  "instance": "/v1/jobs/01J9.../cancel",
  "trace_id": "4bf92f3577b34da6a3ce929d0e0e4736"
}

No required extension members. detail is prose and may be reworded at any time.

{% include "_help.html" %}

What this is not

not-found is a job you cannot read at all: a 403 there would confirm it exists. Here you have already read the job, so saying no plainly reveals nothing.

insufficient-scope is the credential lacking the scope for the call. This one is you, with a credential that may make the call, and this job.

{% endblock %}