GithubHelp home page GithubHelp logo

information-architect-hw's Introduction

API / Integrations Information Architect HW

Feladat

Készítse el az alább található végpont angol nyelvű dokumentációját a rendelkezésre álló vázlat alapján. A feladat teljesítéséhez használja a StopLight rendszerét (https://app.stoplight.io).

Megoldását OAS (Swagger 2) w/ Stoplight Extensions .json formátumban exportálva juttassa vissza hozzánk.

A dokumentálandó végpont vázlata

Feliratkozók tömeges módosítása

Egy hívással tudja módosítani tetszőleges feliratkozók bármely adatát. Feliratkozónként egy-egy objektumban kell átadni a módosítandó adatokat. Feliratkozónként akár más-más adatokat is lehet módosítani. Ha a módosítandó adatok között szerepel az id kulcs, akkor az adott azonosítójú feliratkozó kerül módosításra, de lehetőség van bármely mező értéke alapján is módosítani. Ez utóbbi esetben az external_key_field mezőben kell megadni, hogy mely kulcs alapján történjen az azonosítás.

FONTOS: external_key_field alapján történő azonosítás esetén minden objektumnak tartalmaznia kell az external_key_field által hivatkozott mezőt.

FONTOS: ha nem id alapján történik a frissítés, akkor előfordulhat, hogy egynél több rekord is módosításra kerül.

FIGYELEM: a kötegelt módosítás nagy mennyiségű feliratkozó gyors módosítására szolgál, az adatmódosítás során nem történik mezőszinkron, nem hajtódnak végre műveletek, sem időzítések. Tehát csak abban az esetben használja a tömeges módosítást, ha az előbbiekre nincs szüksége.

kérés:

POST https://emarsys.net/api/contacts/updates

{
    "external_key_field": "some_id_field",
    "contacts": [
        {
            "first_name": "Alma",
            "last_name": "Fa",
            "some_id_field": "qwe123"
        },
               {
            "email": "[email protected]",
            "some_id_field": "asd456"
        }
    ]
}

válasz:

HTTP 200

{
    "results": [
        {
            "id": 9,
            "some_field_id": "qwe123",
            "_links": {
                "href": "https://emarsys.net/api/contacts/9"
            }
        },
        {
            "id": 28,
            "some_field_id": "asd456",
            "_links": {
                "href": "https://emarsys.net/api/contacts/28"
            }
        },
        {
            "id": 41,
            "some_field_id": "asd456",
            "_links": {
                "href": "https://emarsys.net/api/contacts/41"
            }
        }
    ]
}

information-architect-hw's People

Contributors

blasiusvonszerencsi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.