PUT/v2/user-preferences/project-storage/{projectId}/{fieldName}

Set a field in user project storage

Stores a JSON value in the authenticated user's storage for a project. Use projectId and fieldName to select the project and field; sending null removes that field without changing other fields or projects. The field name must match the documented pattern, and the value and project storage must stay within their size and field-count limits.

2 parameters
projectIdintegerrequired
The numeric identifier of the project whose user storage to update.
fieldNamestringrequired
The field name to set. Must match `[A-Za-z0-9_.-]{1,64}`.

5 status codes
200Returns confirmation that the field value was stored or removed.
400Returned when the field name, serialized value size, or project field count violates the documented limits, or the request is otherwise invalid.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
403Returned when the authenticated user does not have access to the project.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional
404Returned when the requested resource is not found.
codestringrequired
Allowed:unauthenticatedapi_access_forbiddenapi_key_not_foundinvalid_api_keyinvalid_project_api_keyproject_api_key_expiredbad_credentialsmfa_enabledinvalid_otp_codemfa_not_enabledcan_not_revoke_own_permissionsdata_corrupted
paramsarray<object>optional

Error handling

A 400 is returned when the request is invalid, including when fieldName does not match [A-Za-z0-9_.-]{1,64}, the serialized value exceeds 16 KB, or the project already has 50 fields. The projectId path parameter identifies the project, and the fieldName path parameter identifies the field. A 401 is returned when the request is unauthenticated, a 403 when the authenticated user lacks project access, and a 404 when the requested resource is not found.