Wiki Page Fields
To fetch the metadata of Wiki Page objects, send a GET request to:
https://api.assembla.com/v1/meta/wiki_pages.(json|xml)
Examples
Request XML, using cURL utility:
curl -H "Authorization: bearer _token" https://api.assembla.com/v1/meta/wiki_pages.xml
Request JSON, using cURL utility:
curl -H "Authorization: bearer _token" https://api.assembla.com/v1/meta/wiki_pages.json
The table below lists fields contained in the response. The list will be properly formatted to json or xml as requested.
Fields
| Param | Data type | Access | Description |
|---|---|---|---|
| id | string | read | Page identifier |
| page_name | string | write | Page name |
| contents | text | write | Page contents |
| parent_id | string | write | Identifier of the parent page of which the wiki page is a child page. Use this attribute to build a wiki page tree. |
| space_id | string | read | Identifier of the space to which the page belongs |
| user_id | string | read | Identifier of the author of the page |
| position | integer | write | Order of the page according to its siblings |
| status | integer | write |
Valid statuses include
|
| wiki_format | integer | write |
Valid formats include
|
| version | integer | read | Latest version of the page |
| change_comment | text | write | Comment on a change |
| created_at | datetime | read | Date and time when the page was created |
| updated_at | datetime | read | Date and time when the page was updated |
Validations
| Field | Validator | Description |
|---|---|---|
| page_name | uniqueness validator | Page name should be unique in space scope. |
| page_name | length validator | Page name should not be longer than 50 characters. |
| contents | presence validator | Page contents should be present. |
| position | numericality validator | Only integer or float values are acceptable also NULL value is. |
| wiki_format | inclusion validator |
Only the following values are accepted:
|