Use POST /api/v1/studio/create/team to build a team photo design one player at a time. Each call adds one player's photo to a team template whose photo slots end in a number (player_photo_1, player_photo_2, and so on).
Who can use this: Any API key for your organization, when Studio is enabled for your organization. See API overview & authentication.
Fill team photo slots one at a time
The first call creates the design; later calls with the same name and folder fill the lowest-numbered empty slot.
If you pass a player_id that already fills a slot, that slot's photo is replaced instead.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
template_id |
string | Yes | Source template ID. |
name |
string | Yes | Design name. Later calls find the design by this name, ignoring letter case: "eagles u12" adds to an existing "Eagles U12". |
image_url |
string (HTTPS URL) | Yes | The player's photo. |
player_id |
string | No | Jersey number or unique identifier for this player. Enables slot replacement on resubmit. |
team_id |
string (up to 100 characters) | No | Links the design's folder to the team; same as on /studio/create. See Create & render: the public create endpoints. |
fields |
object | No | Additional dynamic field values (e.g. player name or jersey number text layers). |
face_bbox |
object | No | Face box in pixel coordinates (left, top, right, bottom). When provided, face placement uses it instead of running face detection. |
content_bbox |
object | No | Box around the photo's non-transparent content, paired with face_bbox. |
folder_id / folder_path
|
string | No | Target folder; same rules as /studio/create. |
main_event_code |
string | No | GFcrew Pro only. Applied on the first call; ignored on later slot fills. |
destination_event_code |
string | No | GFcrew Pro only. Same behavior as main_event_code. |
A successful call returns 200 OK:
{
"instance_id": "inst_def456",
"slot_filled": "player_photo_3",
"slots_remaining": 2,
"all_slots_full": false
}
Render the finished team photo
When all_slots_full is true, render the design with POST /api/v1/studio/create-and-render with overwrite: true and the same name, or send it from Studio.
Comments
0 comments
Please sign in to leave a comment.