reflections

Get reflections

GET /v1/reflections/{id}

Read an object by ID and obtain its current etag for subsequent updates or deletion.

Parameters

id

path · Required

Resource, job or operation identifier

Type: string

Complete JSON Schema
{
  "type": "string",
  "minLength": 1,
  "maxLength": 512
}

Request example

Replace path and request parameters with actual values. For requests with a body, save it as request.json using the schema above.

curl --fail-with-body --request GET 'https://api.treering.cn/v1/reflections/{id}' \
  --header "Authorization: Bearer $TREERING_API_TOKEN"

Responses

200

Successful response; status depends on the operation result.

application/json

Type: object

FieldTypeRequiredDescription and constraints
idstringYesResource, job or operation identifier
versionstringYesVersion as a decimal string; do not convert to a floating-point number {"pattern":"^(0|[1-9][0-9]*)$"}
etagstringYesConcurrency tag; preserve quotes when sending If-Match
updatedAtstringYesLast server update timestamp
operationIdstringNoRequest receipt identifier; no status polling is needed
deletedAtstringNoDeletion timestamp
startDatestringNoInclusive civil start date, YYYY-MM-DD
endDateExclusivestringNoExclusive civil end date, YYYY-MM-DD
bodystringNoPlain text reflection body
createTimestring | nullNoOriginal creation timestamp
createTime (anyOf 1)stringNo
createTime (anyOf 2)nullNo
Complete JSON Schema
{
  "type": "object",
  "required": [
    "id",
    "version",
    "etag",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Resource, job or operation identifier"
    },
    "version": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]*)$",
      "description": "Version as a decimal string; do not convert to a floating-point number"
    },
    "etag": {
      "type": "string",
      "description": "Concurrency tag; preserve quotes when sending If-Match"
    },
    "updatedAt": {
      "type": "string",
      "description": "Last server update timestamp"
    },
    "operationId": {
      "type": "string",
      "description": "Request receipt identifier; no status polling is needed"
    },
    "deletedAt": {
      "type": "string",
      "description": "Deletion timestamp"
    },
    "startDate": {
      "type": "string",
      "description": "Inclusive civil start date, YYYY-MM-DD"
    },
    "endDateExclusive": {
      "type": "string",
      "description": "Exclusive civil end date, YYYY-MM-DD"
    },
    "body": {
      "type": "string",
      "description": "Plain text reflection body"
    },
    "createTime": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Original creation timestamp"
    }
  },
  "additionalProperties": false
}

400, 401, 403, 404, 429, 500, 503

Error response; branch on code.

application/json

Type: object

FieldTypeRequiredDescription and constraints
codestringYesMachine-readable error code
messagestringNoError message; use code for program logic
requestIdstringNoRequest trace identifier
operationIdstringNoRequest receipt identifier; no status polling is needed
Complete JSON Schema
{
  "type": "object",
  "required": [
    "code"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "Machine-readable error code"
    },
    "message": {
      "type": "string",
      "description": "Error message; use code for program logic"
    },
    "requestId": {
      "type": "string",
      "description": "Request trace identifier"
    },
    "operationId": {
      "type": "string",
      "description": "Request receipt identifier; no status polling is needed"
    }
  },
  "additionalProperties": true
}

On this page