Skip to main content
PATCH
Change a project template's portal settings: customer sharing, hidden tasks and fields

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Path Parameters

template_id
string
required

The template's id, as GET /v1/project_templates lists it

Body

application/json
comment_sharing_default
enum<string>
Available options:
internal,
external
field_sharing
Field Sharing · object

The fields to change, each external or internal; an entry sent as null puts that field back to the default (the whole map as null is refused: leave it out). Fields not sent keep theirs

field_sharing_default
enum<string>
Available options:
internal,
external
fields_shown
Fields Shown · object

A task's standard fields to show (true) or remove (false), as task:<key>; null puts one back to the default. Fields not sent keep theirs. A custom field is added to or removed from a template with PUT or DELETE /v1/project_templates/{template_id}/fields/{field_key}, which also keeps it internal for sharing

hidden_tasks
string[]

The whole list of the template's tasks kept from the customer, by id: tasks not in it are shown, and [] shows them all

Maximum array length: 5000
Required string length: 1 - 64
shared_with_customer
boolean
task_field_order
Task Field Order · object

For each task kind sent (activity, milestone), the drawer's fields in order, by key; null or an empty list goes back to the default order. Kinds not sent keep theirs

task_hidden_fields
Task Hidden Fields · object

For each template task sent (by id), the whole list of task fields kept from the customer on it, by bare key (status, not task:status); an empty list or null clears it. Tasks not sent keep theirs

Response

200 - application/json

Successful Response

comment_sharing_default
enum<string>
required

Whether a new comment is shown to the customer unless its writer says

Available options:
internal,
external
field_sharing
Field Sharing · object
required

Fields shown to (external) or kept from (internal) the customer, by name: project:<key> for a field of the project, task:<key> for a column of its task table, with the keys GET /v1/fields?object=project (or task) lists, standard ones included (task:status)

field_sharing_default
enum<string>
required

Whether a field not listed in field_sharing is shown to the customer. A project's custom field is the exception: it is shown only when listed external

Available options:
internal,
external
fields_shown
Fields Shown · object
required

Fields shown (true) or removed (false) in the app (the Edit fields dialog), by name

fields_shown_default
boolean
required

Whether a custom field not listed in fields_shown shows in the app. Read only: the app never changes it

hidden_tasks
string[]
required

The template's tasks (by id, as GET /v1/project_templates/{template_id} lists them) kept from the customer: the project's tasks made from them are hidden from the customer

shared_with_customer
boolean
required

The template's own Share switch. A project made from the template always starts unshared, as in the app: it is shared from the project

task_field_order
Task Field Order · object
required

The order of the fields in the template's task drawer, by task kind (activity, milestone): field keys, the listed ones first

task_hidden_fields
Task Hidden Fields · object
required

For a template task (by id), the task fields kept from the customer on that task alone, on top of field_sharing, by bare key (status, not task:status)