SettingsUpload an image for the front-page internal message

Upload an image for the front-page internal message

Used by the front-page message editor: the image is uploaded here, the returned URL is inserted into the HTML, and the HTML is then saved as the FrontPageInternalMessage setting (a separate PUT). Only users whose role has the front-page privilege may upload. Send multipart/form-data; only the FIRST part is used, and its own Content-Type header decides whether it is accepted — the bytes are not inspected. The image is stored under a new random name; nothing is ever overwritten, and nothing deletes it later.

Use it to:

  • Front-page message editor inserting a picture into the administrator's notice to all users

Not for:

  • Expense receipts — POST /v1/employee-expense/{employeeExpenseID}/image / POST /v1/project-expense/{expenseID}/file
  • Embedding images as data: URIs — the setting PUT refuses them (413)

Behaviour:

  • Not idempotent.
  • Safe to retry.
  • Side effect: Does NOT change the FrontPageInternalMessage setting — the caller must insert the URL into the HTML and save it.
  • On failure: 403 / 400 / 415 / 413: nothing is stored.
  • Changes are visible to the next read immediately.

Not yet documented: behaviour → batch semantics; examples.

curl -X POST "https://app3.timelog.com/your-account/api/v2/settings/frontpage-image" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "location": "example_string"
}
POST
/v2/settings/frontpage-image
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.

OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp). The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user. > Not yet documented: how to obtain a token. > Not yet documented: token lifetime.
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. OAuth 2.0 bearer token, sent as Authorization: Bearer <token>. JWT and reference tokens are both accepted. The token must carry the required scope (default tlp).

The token's sub claim is the acting user. A token WITHOUT sub (client-credentials) acts as the system service user. If the sub user cannot log in (inactive, locked, deleted), the request is rejected with 401 — it is no longer let through without a user.

Not yet documented: how to obtain a token.

Not yet documented: token lifetime.

Responses

locationstring

It is a bearer link: anyone holding it can read the image until it expires.

Set by TimeLog.

Property name is lower-case 'location' (anonymous object), unlike the PascalCase models of the rest of the API.