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

Get a field from user project storage

Retrieves a value from the authenticated user's project-specific storage. Use projectId and fieldName to select the project and stored field; the response data is null when that field is not set. The authenticated user must have access to the project.

2 parameters
projectIdintegerrequired
The numeric identifier of the project whose user storage to read.
fieldNamestringrequired
The name of the stored field to retrieve.

5 status codes
200Returns an object containing `data` with the value stored for the field; `data` is null when the field is not set.
dataobjectoptional
The data stored for the field
400Returned when the request is 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. The projectId path parameter identifies the project, and the fieldName path parameter identifies the stored 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.