/team.profile.get
GET
/team.profile.getRetrieve a team's profile.
Request
Query Params
token
string
required
Authentication token. Requires scope: users.profile:read
visibility
string
optional
Filter by visibility.
Request samples
Responses
Typical success response(200)
Typical error response(500)
Typical success response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
ok
#/definitions/700149required
profile
object
required
fields
$ref(#/definitions/463272)[]
required
Exampleresponse
{
"ok": true,
"profile": {
"fields": [
{
"hint": "Enter the extension to reach your desk",
"id": "Xf06054AAA",
"is_hidden": 1,
"label": "Phone extension",
"options": null,
"ordering": 0,
"possible_values": null,
"type": "text"
},
{
"hint": "When you were born",
"id": "Xf06054BBB",
"label": "Date of birth",
"options": null,
"ordering": 1,
"possible_values": null,
"type": "date"
},
{
"hint": "Enter a link to your Facebook profile",
"id": "Xf06054CCC",
"label": "Facebook",
"options": null,
"ordering": 2,
"possible_values": null,
"type": "link"
},
{
"hint": "Hogwarts, obviously",
"id": "Xf06054DDD",
"label": "House",
"options": null,
"ordering": 3,
"possible_values": [
"Gryffindor",
"Hufflepuff",
"Ravenclaw",
"Slytherin"
],
"type": "options_list"
},
{
"hint": "Office location (LDAP)",
"id": "Xf06054EEE",
"label": "Location",
"options": {
"is_protected": 1
},
"ordering": 4,
"possible_values": null,
"type": "text"
},
{
"hint": "The boss",
"id": "Xf06054FFF",
"label": "Manager",
"options": null,
"ordering": 5,
"possible_values": null,
"type": "user"
}
]
}
}
Last modified: a year ago