name | method | path | description |
---|---|---|---|
Get additional fields | GET | /api/v1/additional_fields |
Retrieve all or some additional fields of your community. |
Add additional field | POST | /api/v1/additional_fields |
Add an additional field to your community. Currently, these fields are only available to members. |
Delete additional field | DELETE | /api/v1/additional_fields/{identifier} |
Delete the additonal field based on their identifier. |
Get additional field | GET | /api/v1/additional_fields/{identifier} |
Return a specific additional field. To do this, you need the id provided by Socie. |
Update additional field | PATCH | /api/v1/additional_fields/{identifier} |
Update the information for a single addtional field. |
Retrieve all or some additional fields of your community.
name | type | description |
---|---|---|
X-API-Key |
header | The API Key for your community. |
limit |
query | Use this parameter to limit the amount of objects returned. Check Pagination for more information. |
skip |
query | Use this parameter to skip some objects in the response. Check Pagination for more information. |
sort |
query | Use this parameter to sort the response on 1 of the fields listed under 'Possible Sort Fields'. Check Sorting for more information. |
createdAt
modifiedAt
orderNumber
media type | data type | description |
---|---|---|
application/json | ApiAdditionalFieldsResponse (JSON) |
GET /api/v1/additional_fields
Content-Type: */*
Accept: application/json
X-API-Key: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"results" : [ {
"id" : "5bBePJwK9ycB1QnjOlot",
"name" : "Company name",
"placeholder" : "Your company name",
"type" : "TEXT",
"icon" : {
"style" : "REGULAR",
"unicode" : "f34e"
},
"isEditableByMember" : true,
"isMandatoryForMember" : false,
"isVisibleInApp" : false,
"orderNumber" : 0,
"createdAt" : "2021-04-23T18:25:43.511Z",
"modifiedAt" : "2021-04-23T18:25:43.511Z"
}, {
"id" : "...",
"name" : "...",
"placeholder" : "...",
"type" : "...",
"icon" : {
"style" : "...",
"unicode" : "..."
},
"isEditableByMember" : true,
"isMandatoryForMember" : true,
"isVisibleInApp" : true,
"orderNumber" : 12345,
"createdAt" : "...",
"modifiedAt" : "..."
} ],
"_links" : {
"base" : "https://api.socie.nl",
"next" : "/api/v1/members?skip=5&limit=5",
"prev" : "/api/v1/members?skip=0&limit=5",
"self" : "https://api.socie.nl/api/v1/members"
},
"limit" : 5,
"skip" : 10,
"size" : 1
}
Add an additional field to your community. Currently, these fields are only available to members.
name | type | description |
---|---|---|
X-API-Key |
header | The API Key for your community. |
media type | data type |
---|---|
application/json | ApiAdditionalFieldInput (JSON) |
media type | data type | description |
---|---|---|
application/json | ApiInsertResponse (JSON) |
POST /api/v1/additional_fields
Content-Type: application/json
Accept: application/json
X-API-Key: ...
{
"name" : "Company name",
"placeholder" : "Your company name",
"type" : "TEXT",
"icon" : {
"style" : "REGULAR",
"unicode" : "f34e"
},
"isEditableByMember" : true,
"isMandatoryForMember" : true,
"isVisibleInApp" : true,
"orderNumber" : 0
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"id" : "5bBePJwK9ycB1QnjOlot",
"externalId" : "123456"
}
Delete the additonal field based on their identifier.
name | type | description |
---|---|---|
X-API-Key |
header | The API Key for your community. |
identifier |
path | The id of the additional field you would like to delete. |
DELETE /api/v1/additional_fields/{identifier}
Content-Type: */*
X-API-Key: ...
...
HTTP/1.1 204 No Content
Return a specific additional field. To do this, you need the id
provided by Socie.
name | type | description |
---|---|---|
X-API-Key |
header | The API Key for your community. |
identifier |
path | The id of the additional field you would like to retrieve. |
media type | data type | description |
---|---|---|
application/json | ApiAdditionalFieldResponse (JSON) |
GET /api/v1/additional_fields/{identifier}
Content-Type: */*
Accept: application/json
X-API-Key: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"id" : "5bBePJwK9ycB1QnjOlot",
"name" : "Company name",
"placeholder" : "Your company name",
"type" : "TEXT",
"icon" : {
"style" : "REGULAR",
"unicode" : "f34e"
},
"isEditableByMember" : true,
"isMandatoryForMember" : false,
"isVisibleInApp" : false,
"orderNumber" : 0,
"createdAt" : "2021-04-23T18:25:43.511Z",
"modifiedAt" : "2021-04-23T18:25:43.511Z"
}
Update the information for a single addtional field.
name | type | description |
---|---|---|
X-API-Key |
header | The API Key for your community. |
identifier |
path | The id of the additional field you would like to update. |
media type | data type |
---|---|
application/json | ApiAdditionalFieldPatchInput (JSON) |
code | condition |
---|---|
204 | The additonal field was updated successfully |
media type | data type | description |
---|---|---|
application/json | NoContentResponse (JSON) |
PATCH /api/v1/additional_fields/{identifier}
Content-Type: application/json
Accept: application/json
X-API-Key: ...
{
"name" : "Company name",
"placeholder" : "Your company name",
"icon" : {
"style" : "REGULAR",
"unicode" : "f34e"
},
"isEditableByMember" : true,
"isMandatoryForMember" : true,
"isVisibleInApp" : true,
"orderNumber" : 0
}
HTTP/1.1 204 No Content
Content-Type: application/json
{ }