Gigs
Create a Gig
POST
https://api.cirro.io/v2/gigs
Parameters
Parameter | Type | Note | |
---|---|---|---|
title | required | string | |
description | required | string | |
url | required | string | |
start_at | required | number | UNIX timestamp |
end_at | required | number | UNIX timestamp |
archive_at | number | UNIX timestamp | |
total_seats | required | number | |
seats_min | number | Default: 1 | |
seats_max | number | Default: 1 | |
invitation_mode | required | enum | One of auto , manual |
invitation_multiplier | number | Default: 10 | |
invitation_frequency | number | Default: 5 | |
filter_query | required | object | |
sort_query | object | Default: {} | |
tasks | required | array | |
notification_payload | object | Default: {} | |
invitation_notification_topic | string | number | either the name or the id of the topic | |
epam_options | object | Default: {} |
Returns the Gig object if creation succeeded. Returns an error if creation failed.
Please see our guide on Gig creation to learn more about the parameters and their usage in different scenarios.
Example
1client = CirroIOV2::Client.new(...)
2client.Gig.create(
3 title: "My Gig",
4 description: "My Gig Description",
5 url: "https://www.example.com",
6 start_at: 1621965600,
7 end_at: 1621969200,
8 total_seats: 10,
9 invitation_mode: "auto",
10 filter_query: {
11 "status": "active",
12 "segment": "my_favorite_testers"
13 },
14 tasks: [
15 { "title": "Ah, Wilderness!", "base_price": 300 }
16 ]
17)