Skip to content

API Access for Team Attributes #285

@jenningsanderson

Description

@jenningsanderson

Attempting to update team profile attributes via a PUT request:

tags = [{'key_id': 1, 'value': 'Universidade Federal de Goiás'}, {'key_id': 3, 'value': 'Goiânia'}, {'key_id': 2, 'value': 'Brazil'}, {'key_id': 11, 'value': 'redacted@gmail.com'}, {'key_id': 13, 'value': ' '}, {'key_id': 12, 'value': 2021}]

requests.put(API_URL + '/teams/' + str(team_id), headers=headers, data=json.dumps({'tags':tags}))

Returns

{'statusCode': 400,
 'error': 'Bad Request',
 'message': 'Empty .update() call detected! Update data does not contain any values to update. This will result in a faulty query. Table: team. Columns: .'}

Oddly, it works for some teams and not for others?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions