• Resolved savetherobots42

    (@savetherobots42)


    Hello,

    I am working on a script using the REST API to post events to my site from Airtable. I have most of it work but there are 3 fields I can not seem to get:

    Description, Show Map, and Show Map Link.

    I have tried using “description:” in the event data passed. I have also added show_map: true, show_map_link: true to my venue data. Any guidance on how to interact with these fields via REST API would be greatly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Darian

    (@d0153)

    Hi @savetherobots42

    Thanks for reaching out. Let me help you with this one.

    I tried replicating the issue on my side and it’s working as expected. Here’s a test JSON I am using:

    {
        "author": "2",
        "status": "publish",
        "date": "2023-02-01 02:13:07",
        "date_utc": "2023-01-31 02:13:07",
        "modified": "2023-01-31 02:13:07",
        "modified_utc": "2023-01-31 02:13:07",
        "title": "MY TEST EVENT API",
        "description": "my test event DESCRIPTION",
        "excerpt": "my test event",
        "slug": "my-test-event",
        "all_day": false,
        "start_date": "2023-06-01 19:30:00",
        "start_date_details": {
            "year": "2023",
            "month": "06",
            "day": "01",
            "hour": "19",
            "minutes": "30",
            "seconds": "00"
        },
        "end_date": "2023-06-01 21:30:00",
        "end_date_details": {
            "year": "2023",
            "month": "06",
            "day": "01",
            "hour": "21",
            "minutes": "30",
            "seconds": "00"
        },
        "utc_start_date": "2023-02-01 19:30:00",
        "utc_start_date_details": {
            "year": "2023",
            "month": "02",
            "day": "01",
            "hour": "19",
            "minutes": "30",
            "seconds": "00"
        },
        "utc_end_date": "2023-02-01 21:30:00",
        "utc_end_date_details": {
            "year": "2023",
            "month": "02",
            "day": "01",
            "hour": "21",
            "minutes": "30",
            "seconds": "00"
        },
        "timezone": "UTC+0",
        "timezone_abbr": "UTC+0",
        "cost": "",
        "cost_details": {
            "currency_symbol": "",
            "currency_code": "",
            "currency_position": "prefix",
            "values": []
        },
        "website": "",
        "show_map": false,
        "show_map_link": false,
        "hide_from_listings": false,
        "sticky": false,
        "featured": false,
        "categories": [],
        "tags": [],
        "venue": 157,
        "organizer": []
    }

    If that doesn’t help, please provide the sample data you’re passing to create the event.

    Looking forward to your reply.

    Thread Starter savetherobots42

    (@savetherobots42)

    Thank you! That helped!

    I am now struggling with creating the venue. I can get the name to go through but the address details do not.

    Plugin Support Darian

    (@d0153)

    Hi @savetherobots42

    Here’s a sample JSON body where a venue is included that doesn’t exist yet.

    {
        "author": "2",
        "status": "publish",
        "date": "2023-02-01 02:13:07",
        "date_utc": "2023-01-31 02:13:07",
        "modified": "2023-01-31 02:13:07",
        "modified_utc": "2023-01-31 02:13:07",
        "title": "MY TEST EVENT",
        "description": "my test event",
        "excerpt": "my test event",
        "slug": "my-test-event",
        "all_day": false,
        "start_date": "2023-02-01 19:30:00",
        "start_date_details": {
            "year": "2023",
            "month": "02",
            "day": "01",
            "hour": "19",
            "minutes": "30",
            "seconds": "00"
        },
        "end_date": "2023-02-01 21:30:00",
        "end_date_details": {
            "year": "2023",
            "month": "02",
            "day": "01",
            "hour": "21",
            "minutes": "30",
            "seconds": "00"
        },
        "utc_start_date": "2023-02-01 19:30:00",
        "utc_start_date_details": {
            "year": "2023",
            "month": "02",
            "day": "01",
            "hour": "19",
            "minutes": "30",
            "seconds": "00"
        },
        "utc_end_date": "2023-02-01 21:30:00",
        "utc_end_date_details": {
            "year": "2023",
            "month": "02",
            "day": "01",
            "hour": "21",
            "minutes": "30",
            "seconds": "00"
        },
        "timezone": "UTC+0",
        "timezone_abbr": "UTC+0",
        "cost": "",
        "cost_details": {
            "currency_symbol": "",
            "currency_code": "",
            "currency_position": "prefix",
            "values": []
        },
        "website": "",
        "show_map": false,
        "show_map_link": false,
        "hide_from_listings": false,
        "sticky": false,
        "featured": false,
        "categories": [],
        "tags": [],
        "venue": {
            "venue": "My test venue from api",
                "description": "Venue Description",
                "address": "123, raccoon Ave.",
                "city": "Raccon City",
                "country": "United States",
                "province": "raccoon County",
                "state": "NH",
                "zip": "12345",
                "phone": "+112341234",
                "website": "http://raccoons.org",
                "stateprovince": "NH",
                "show_map": true,
                "show_map_link": true
        },
        "organizer": []
    }

    I hope this helps, and please let me know if you have further questions or concerns.

    Plugin Support Darian

    (@d0153)

    Hi @savetherobots42

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Event Description/show map/show map link’ is closed to new replies.