Skip to navigation

Veld toevoegen

Voegt een veld toe aan een lijst. Bij select_single en select_multiple geef je de keuzemogelijkheden mee in options. Laposta leidt uit de naam een custom_name af, en dat is de sleutel die je bij relaties gebruikt. Adds a field to a list. For select_single and select_multiple, you pass the available choices in options. Laposta derives a custom_name from the name, which is the key you use for subscribers. Fügt einer Liste ein Feld hinzu. Bei select_single und select_multiple gibst du die Auswahlmöglichkeiten in options mit. Laposta leitet aus dem Namen einen custom_name ab, und das ist der Schlüssel, den du bei Abonnenten verwendest. Añade un campo a una lista. Con select_single y select_multiple envías las opciones de selección en options. Laposta deriva un custom_name del nombre, y esa es la clave que usas en los contactos.

Authentication

AuthorizationBasic
Vul je API-sleutel in bij api_key en laat leave_empty leeg. De API gebruikt basic auth, waarbij je sleutel de plaats van de gebruikersnaam inneemt. In curl schrijf je dat als -u JOUW_SLEUTEL:, met een dubbele punt en niets erachter. Enter your API key at api_key and leave leave_empty empty. The API uses basic auth, with your key in place of the username. In curl that reads -u YOUR_KEY:, with a colon and nothing after it. Trage deinen API-Schlüssel bei api_key ein und lass leave_empty leer. Die API nutzt Basic Auth, wobei dein Schlüssel an die Stelle des Benutzernamens tritt. In curl schreibst du das als -u DEIN_SCHLUESSEL:, mit einem Doppelpunkt und nichts dahinter. Introduce tu clave API en api_key y deja leave_empty vacío. La API usa basic auth, con tu clave en lugar del nombre de usuario. En curl se escribe como -u TU_CLAVE:, con dos puntos y nada después.

Request

This endpoint expects an object.
list_idstringRequired
Het id van de lijst. Dat vind je in het antwoord van Alle lijsten opvragen, en in de applicatie in de URL van de lijst. The id of the list. You find it in the response of Get all lists, and in the application in the URL of the list. Die ID der Liste. Du findest sie in der Antwort von Alle Listen abrufen und in der Anwendung in der URL der Liste. El id de la lista. Lo encuentras en la respuesta de Obtener todas las listas y en la aplicación, en la URL de la lista.
namestringRequired
Een naam voor dit veld. A name for this field Ein Name für dieses Feld. Un nombre para este campo.
datatypeenumRequired
Het datatype: text, numeric, date, select_single of select_multiple. The data type: text, numeric, date, select_single or select_multiple Der Datentyp: text, numeric, date, select_single oder select_multiple. El tipo de dato: text, numeric, date, select_single o select_multiple.
Allowed values:
requiredbooleanRequired
Is dit een verplicht veld? Is this a mandatory field? Ist dies ein Pflichtfeld? ¿Es este un campo obligatorio?
in_formbooleanRequired
Is het veld te zien in het aanmeldformulier? (boolean) Does this field occur in the subscription form? (boolean) Ist das Feld im Anmeldeformular zu sehen? (boolean) ¿El campo se ve en el formulario de registro? (boolean)
in_listbooleanRequired
Is het veld te zien in het overzicht in Laposta? (boolean) Is this field visible in Laposta’s overview? (boolean) Ist das Feld in der Übersicht in Laposta zu sehen? (boolean) ¿El campo se ve en la vista general de Laposta? (boolean)
defaultvaluestringOptional
Een eventuele standaardwaarde. A potential default value Ein eventueller Standardwert. Un valor predeterminado, si lo hay.
datatype_displayenumOptional
Alleen voor select_single: de gewenste weergave (select, radio) Only applicable for select_single: the desired display (select, radio) Nur für select_single: die gewünschte Darstellung (select, radio) Solo para select_single: la visualización deseada (select, radio)
Allowed values:
optionslist of stringsOptional
Welke selectiemogelijkheden zijn er? (Verplicht bij datatypes select_single of select_multiple). De opties kunnen als array worden meegegeven. Bij het antwoord worden de options herhaald, maar is er ook een extra veld options_full. Hierin staan ook de bij de options horende id’s genoemd, die eventueel gebruikt kunnen worden om de options later te wijzigen. What selection options are available? (mandatory for the data types select_single of select_multiple). The options can be given as an array. In the answer the options are repeated, but there is also an extra field options_full. Also listed are the option IDs, which may eventually be used to change the options later. Welche Auswahlmöglichkeiten gibt es? (Pflicht bei den Datentypen select_single oder select_multiple). Die Optionen können als Array mitgegeben werden. In der Antwort werden die options wiederholt, es gibt dann aber auch ein zusätzliches Feld options_full. Darin stehen auch die zu den options gehörenden IDs, die eventuell verwendet werden können, um die options später zu ändern. ¿Qué opciones de selección hay? (Obligatorio con los tipos de dato select_single o select_multiple). Las opciones se pueden enviar como array. En la respuesta se repiten las options, pero también hay un campo adicional options_full. Ahí se indican también los ID que corresponden a las options, que se pueden usar para modificar las options más adelante.

Response

De aanvraag is gelukt. The request succeeded. Die Anfrage war erfolgreich. La solicitud se ha realizado correctamente.
fieldobjectOptional
Het field-object The field object Das field-Objekt El objeto field

Errors

400
Bad Request Error
401
Unauthorized Error
429
Too Many Requests Error