GET http://conduct.io/api/v1/topics
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
Input | Type | Description | Default | Options |
---|---|---|---|---|
per_page |
integer |
results to show per page | 20 |
[1..10000] |
sort_field |
string |
field to sort by | created_at |
id, title, created_at |
sort_dir |
string |
direction to sort by | desc |
asc, desc |
POST http://conduct.io/api/v1/topics`
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
Input | Type | Description | Default | Required |
---|---|---|---|---|
title |
string |
topic title | null |
true |
description |
string |
topic description | null |
false |
locked |
boolean |
is the topic locked | false |
false |
none
PUT http://conduct.io/api/v1/topics/:topic_id
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
Input | Type | Description | Default | Required |
---|---|---|---|---|
title |
string |
topic title | current | false |
description |
string |
topic description | current | false |
locked |
boolean |
is the topic locked | current | false |
DELETE http://conduct.io/api/v1/topics/:topic_id
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
none
GET http://conduct.io/api/v1/topics/:topic_id/suggestions
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
Input | Type | Description | Default | Options |
---|---|---|---|---|
per_page |
integer |
results to show per page | 20 |
[1..10000] |
sort_field |
string |
field to sort by | created_at |
id, title, created_at |
sort_dir |
string |
direction to sort by | desc |
asc, desc |
POST http://conduct.io/api/v1/topics`
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
Input | Type | Description | Default | Required |
---|---|---|---|---|
title |
string |
suggestion title | null |
true |
description |
string |
suggestion description | empty string | false |
none
PUT http://conduct.io/api/v1/suggestions/:suggestion_id
or
PUT http://conduct.io/api/v1/topics/:topic_id/suggestions/:suggestion_id
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
Input | Type | Description | Default | Required |
---|---|---|---|---|
title |
string |
topic title | current | false |
description |
string |
topic description | current | false |
locked |
boolean |
is the topic locked | current | false |
DELETE http://conduct.io/api/v1/suggestions/:suggestion_id
or
DELETE http://conduct.io/api/v1/topics/:topic_id/suggestions/:suggestion_id
Input | Type | Description | Default | required |
---|---|---|---|---|
X-API-Key |
string |
your account API key | null |
true |
none