# Confluence content properties through the REST API

URL: https://goingstellar.ro/reference/atlassian-rest-api/content-properties/

Content properties hold JSON next to a page. POST /wiki/api/v2/pages/{page-id}/properties creates one with a key and a value. An update uses the property id in the path and a version.number one higher than the current one.

## Endpoints

| Method | Path | What it does |
|---|---|---|
| POST | `/wiki/api/v2/pages/{page-id}/properties` | Creates a property for a page. |
| GET | `/wiki/api/v2/pages/{page-id}/properties` | Lists the properties of a page. |
| PUT | `/wiki/api/v2/pages/{page-id}/properties/{property-id}` | Updates a property. |
| DELETE | `/wiki/api/v2/pages/{page-id}/properties/{property-id}` | Deletes a property. |

## Examples

### POST /wiki/api/v2/pages/{pageId}/properties

Creates the property ref-demo with a JSON object as value.

```bash
curl -X POST \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
  "key": "ref-demo",
  "value": {
    "reviewed": true
  }
}' \
  'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.post(
    'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    json={'key': 'ref-demo', 'value': {'reviewed': True}},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "version": {
  "number": 1,
  "message": "",
  "minorEdit": false,
  "authorId": "<accountId>",
  "createdAt": "2026-11-29T17:32:08.404Z"
 },
 "value": {
  "reviewed": true
 },
 "key": "ref-demo",
 "id": "33685793"
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### GET /wiki/api/v2/pages/{pageId}/properties

Lists the properties on the page. Two system keys appear next to the new one.

```bash
curl \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.get(
    'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "results": [
  {
   "version": {
    "number": 1
   },
   "value": "{\"titleLayoutAlignment\":\"LEFT\",\"subtitle\":\"\",\"subtitleEnabled\":false,\"titlePropertyBylineEnabled\":false,\"titlePropertyEmojiEnabled\":false,\"headerImageLayout\":\"ABOVE\",\"headerImageStylingEnabled\":false}",
   "key": "page-title-property-draft",
   "id": "33653099"
  },
  {
   "version": {
    "number": 1
   },
   "value": "{\"titleLayoutAlignment\":\"LEFT\",\"subtitle\":\"\",\"subtitleEnabled\":false,\"titlePropertyBylineEnabled\":false,\"titlePropertyEmojiEnabled\":false,\"headerImageLayout\":\"ABOVE\",\"headerImageStylingEnabled\":false}",
   "key": "page-title-property-published",
   "id": "33653101"
  },
  {
   "version": {
    "number": 1
   },
   "value": {
    "reviewed": true
   },
   "key": "ref-demo",
   "id": "33685793"
  }
 ]
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### PUT /wiki/api/v2/pages/{pageId}/properties/{propertyId}

Updates the value; version.number is 2.

```bash
curl -X PUT \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
  "key": "ref-demo",
  "value": {
    "reviewed": false
  },
  "version": {
    "number": 2
  }
}' \
  'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties/{propertyId}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.put(
    'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties/{propertyId}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
    json={'key': 'ref-demo', 'value': {'reviewed': False}, 'version': {'number': 2}},
)
print(r.status_code, r.text)
```

Response: HTTP 200

```
{
 "version": {
  "number": 2,
  "message": "",
  "minorEdit": false,
  "authorId": "<accountId>",
  "createdAt": "2026-11-29T17:32:09.936Z"
 },
 "value": {
  "reviewed": false
 },
 "key": "ref-demo",
 "id": "33685793"
}
```

Sent to Atlassian Cloud on 29 Nov 2026.

### DELETE /wiki/api/v2/pages/{pageId}/properties/{propertyId}

Deletes the property by id.

```bash
curl -X DELETE \
  -u "you@example.com:$ATLASSIAN_API_TOKEN" \
  -H 'Accept: application/json' \
  'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties/{propertyId}'
```

```python
import os
import requests

EMAIL = "you@example.com"
r = requests.delete(
    'https://your-domain.atlassian.net/wiki/api/v2/pages/{pageId}/properties/{propertyId}',
    auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
    headers={'Accept': 'application/json'},
)
print(r.status_code, r.text)
```

Response: HTTP 204

No response body.

Sent to Atlassian Cloud on 29 Nov 2026.

## How it behaves

- The create call answers 200 (not 201) with id, key, value and version number 1 (conf-property-create).
- A new page already holds the keys page-title-property-draft and page-title-property-published, whose values are JSON strings (conf-property-list).
- A value stored as an object comes back as an object. The system values come back as strings.
- The update uses the property id in the path, takes version.number 2 and answers with version 2 (conf-property-update). Delete answers 204 (conf-property-delete).

## Pitfalls

- The update path uses the property id, not the key. List the properties first to get the id.
- The two system keys were created with the page, not by the request, so leave them alone when you list and clean up properties.
- A value of any JSON type is accepted by the schema, so validate it in your own code.

## Questions and answers

### Can a property hold an array?

The schema leaves value untyped. Only an object was run.

## Related

- [Get a page](https://goingstellar.ro/reference/atlassian-rest-api/get-page/)
- [Labels](https://goingstellar.ro/reference/atlassian-rest-api/page-labels/)
- [Footer comments](https://goingstellar.ro/reference/atlassian-rest-api/footer-comments/)
- [Update a page and versions](https://goingstellar.ro/reference/atlassian-rest-api/update-page-versions/)
- [Attachments](https://goingstellar.ro/reference/atlassian-rest-api/confluence-attachments/)

## Sources

- [Create content property for page (Confluence REST API v2)](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-content-properties/#api-pages-page-id-properties-post)
- [The Confluence Cloud REST API v2 (Atlassian Developer)](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/)

