Estás viendo la API de aplicaciones cuyo ámbito se limita a las aplicaciones. Si buscas la especificación API completa, consulta la API de Organizaciones.
Esta petición tiene como objetivo cargar una nueva aplicación publicada.
Definición #
-
- Method: PUT
- URL:
https://api.applivery.io/v1/integrations/distributions
- Autenticación, published application ID: requerido
- Encabezados:
Content-Type: application/json
Authorization: bearer <your_app_token>
Params #
Param
Tipo
Descripción
slug
String
Nombre requerido y simplificado de la publicación presente en la URL.
security
String
Seguridad requerida para acceder a tu publicación: public
, password
, logged
.
tags
Array
Etiquetas separadas por comas. E.g.: tag1
, tag2
, tag3
.
groups
Array
Lista de grupos que tendrán acceso a la app publicada con soporte para cláusulas AND / OR. Cada elemento dentro del mismo array se considerará como AND, mientras que cada array será una cláusula OR. Ejemplo: Para permitir a los usuarios en el grupo1 Y grupo2 O en el grupo3, usa: [["group1", "group2"],["group3"]]
.
password
String
Contraseña requerida si la seguridad para el acceso es password
.
visibility
String
Acceso requerido: active
, inactive
, unlisted
.
showHistory
Boolean
Permitir encontrar e instalar versiones anteriores de la aplicación.
filter.type
String
Requerido: last
, build
, builds
, gitBranch
, gitTag
, tag
.
filter.value
String
Identificador requerido del filter.type
seleccionado.
filter.ios
String
Requerido si el SO de la app publicada es iOS
.
filter.macos
String
Requerido si el SO de la app publicada es macOS
.
filter.android
String
Requerido si el SO de la app publicada es android
.
filter.builds.buildPlatform
String
Requerido si el SO de la app publicada es iOS
, macOS
, android
, ps4
, ps5
, switch
, xbox-one
, xbox-series
.
filter.builds.id
String
Build ID.
configuration.application.name
String
Sobrescribir el nombre de la app.
configuration.application.description
String
Sobrescribir la descripción de la app.
configuration.branding.logo
String
Sobrescribir el logo de la marca en la Store.
configuration.branding.primaryColor
String
Sobrescribir el color de la marca en la Store.
configuration.branding.buttonColor
String
Sobrescribir el color del botón.
terms.active
Boolean
Requerir la aceptación de términos legales.
terms.text
String
Términos legales.
showDevInfo
Boolean
Mostrar información técnica de la build, como información de Git, certificados y etiquetas.
allowedCountries
Array
Permitir acceso de países a la publicación de la app. Códigos de país separados por comas: "AF"
, "AL"
, "DZ"
, "AS"
, "AD"
, "AO"
, "AI"
, "AQ"
, "AG"
, "AR"
, "AM"
, "AW"
, "AU"
, "AT"
, "AZ"
, "BS"
, "BH"
, "BD"
, "BB"
, "BY"
, "BE"
, "BZ"
, "BJ"
, "BM"
, "BT"
, "BO"
, "BQ"
, "BA"
, "BW"
, "BV"
, "BR"
, "IO"
, "BN"
, "BG"
, "BF"
, "BI"
, "KH"
, "CM"
, "CA"
, "CV"
, "KY"
, "CF"
, "TD"
, "CL"
, "CN"
, "CX"
, "CC"
, "CO"
, "KM"
, "CG"
, "CD"
, "CK"
, "CR"
, "CI"
, "HR"
, "CU"
, "CW"
, "CY"
, "CZ"
, "DK"
, "DJ"
, "DM"
, "DO"
, "EC"
, "EG"
, "SV"
, "GQ"
, "ER"
, "EE"
, "ET"
, "FK"
, "FO"
, "FJ"
, "FI"
, "FR"
, "GF"
, "PF"
, "TF"
, "GA"
, "GM"
, "GE"
, "DE"
, "GH"
, "GI"
, "GR"
, "GL"
, "GD"
, "GP"
, "GU"
, "GT"
, "GG"
, "GN"
, "GW"
, "GY"
, "HT"
, "HM"
, "VA"
, "HN"
, "HK"
, "HU"
, "IS"
, "IN"
, "ID"
, "IR"
, "IQ"
, "IE"
, "IM"
, "IL"
, "IT"
, "JM"
, "JP"
, "JE"
, "JO"
, "KZ"
, "KE"
, "KI"
, "KP"
, "KR"
, "KW"
, "KG"
, "LA"
, "LV"
, "LB"
, "LS"
, "LR"
, "LY"
, "LI"
, "LT"
, "LU"
, "MO"
, "MK"
, "MG"
, "MW"
, "MY"
, "MV"
, "ML"
, "MT"
, "MH"
, "MQ"
, "MR"
, "MU"
, "YT"
, "MX"
, "FM"
, "MD"
, "MC"
, "MN"
, "ME"
, "MS"
, "MA"
, "MZ"
, "MM"
, "NA"
, "NR"
, "NP"
, "NL"
, "AN"
, "NC"
, "NZ"
, "NI"
, "NE"
, "NG"
, "NU"
, "NF"
, "MP"
, "NO"
, "OM"
, "PK"
, "PW"
, "PS"
, "PA"
, "PG"
, "PY"
, "PE"
, "PH"
, "PN"
, "PL"
, "PT"
, "PR"
, "QA"
, "RW"
, "RE"
, "RO"
, "RU"
, "BL"
, "SH"
, "KN"
, "LC"
, "MF"
, "PM"
, "VC"
, "WS"
, "SM"
, "ST"
, "SA"
, "SN"
, "RS"
, "SC"
, "SL"
, "SG"
, "SX"
, "SK"
, "SI"
, "SB"
, "SO"
, "ZA"
, "GS"
, "SS"
, "ES"
, "LK"
, "SD"
, "SR"
, "SJ"
, "SZ"
, "SE"
, "CH"
, "SY"
, "TW"
, "TJ"
, "TZ"
, "TH"
, "TL"
, "TG"
, "TK"
, "TO"
, "TT"
, "TN"
, "TR"
, "TM"
, "TC"
, "TV"
, "UG"
, "UA"
, "AE"
, "GB"
, "US"
, "UM"
, "UY"
, "UZ"
, "VU"
, "VE"
, "VN"
, "VG"
, "VI"
, "WF"
, "EH"
, "YE"
, "ZM"
, "ZW"
, "AX"
.
blockedCountries
Array
Restringir el acceso de países a la publicación de la app. Códigos de país separados por comas: "AF"
, "AL"
, "DZ"
, "AS"
, "AD"
, "AO"
, "AI"
, "AQ"
, "AG"
, "AR"
, "AM"
, "AW"
, "AU"
, "AT"
, "AZ"
, "BS"
, "BH"
, "BD"
, "BB"
, "BY"
, "BE"
, "BZ"
, "BJ"
, "BM"
, "BT"
, "BO"
, "BQ"
, "BA"
, "BW"
, "BV"
, "BR"
, "IO"
, "BN"
, "BG"
, "BF"
, "BI"
, "KH"
, "CM"
, "CA"
, "CV"
, "KY"
, "CF"
, "TD"
, "CL"
, "CN"
, "CX"
, "CC"
, "CO"
, "KM"
, "CG"
, "CD"
, "CK"
, "CR"
, "CI"
, "HR"
, "CU"
, "CW"
, "CY"
, "CZ"
, "DK"
, "DJ"
, "DM"
, "DO"
, "EC"
, "EG"
, "SV"
, "GQ"
, "ER"
, "EE"
, "ET"
, "FK"
, "FO"
, "FJ"
, "FI"
, "FR"
, "GF"
, "PF"
, "TF"
, "GA"
, "GM"
, "GE"
, "DE"
, "GH"
, "GI"
, "GR"
, "GL"
, "GD"
, "GP"
, "GU"
, "GT"
, "GG"
, "GN"
, "GW"
, "GY"
, "HT"
, "HM"
, "VA"
, "HN"
, "HK"
, "HU"
, "IS"
, "IN"
, "ID"
, "IR"
, "IQ"
, "IE"
, "IM"
, "IL"
, "IT"
, "JM"
, "JP"
, "JE"
, "JO"
, "KZ"
, "KE"
, "KI"
, "KP"
, "KR"
, "KW"
, "KG"
, "LA"
, "LV"
, "LB"
, "LS"
, "LR"
, "LY"
, "LI"
, "LT"
, "LU"
, "MO"
, "MK"
, "MG"
, "MW"
, "MY"
, "MV"
, "ML"
, "MT"
, "MH"
, "MQ"
, "MR"
, "MU"
, "YT"
, "MX"
, "FM"
, "MD"
, "MC"
, "MN"
, "ME"
, "MS"
, "MA"
, "MZ"
, "MM"
, "NA"
, "NR"
, "NP"
, "NL"
, "AN"
, "NC"
, "NZ"
, "NI"
, "NE"
, "NG"
, "NU"
, "NF"
, "MP"
, "NO"
, "OM"
, "PK"
, "PW"
, "PS"
, "PA"
, "PG"
, "PY"
, "PE"
, "PH"
, "PN"
, "PL"
, "PT"
, "PR"
, "QA"
, "RW"
, "RE"
, "RO"
, "RU"
, "BL"
, "SH"
, "KN"
, "LC"
, "MF"
, "PM"
, "VC"
, "WS"
, "SM"
, "ST"
, "SA"
, "SN"
, "RS"
, "SC"
, "SL"
, "SG"
, "SX"
, "SK"
, "SI"
, "SB"
, "SO"
, "ZA"
, "GS"
, "SS"
, "ES"
, "LK"
, "SD"
, "SR"
, "SJ"
, "SZ"
, "SE"
, "CH"
, "SY"
, "TW"
, "TJ"
, "TZ"
, "TH"
, "TL"
, "TG"
, "TK"
, "TO"
, "TT"
, "TN"
, "TR"
, "TM"
, "TC"
, "TV"
, "UG"
, "UA"
, "AE"
, "GB"
, "US"
, "UM"
, "UY"
, "UZ"
, "VU"
, "VE"
, "VN"
, "VG"
, "VI"
, "WF"
, "EH"
, "YE"
, "ZM"
, "ZW"
, "AX"
.
Ejemplo de petición #
curl 'https://api.applivery.io/v1/integrations/distributions' \
-X POST \
-H 'Authorization: bearer xyz...xyz' \
-F 'slug=your-slug-here' \
-F 'security=public' \
-F 'tags=tag1, tag2, tag3' \
-F 'groups[0][]=group1' \
-F 'groups[0][]=group2' \
-F 'groups[1][]=group3' \
-F 'password=your-password' \
-F 'visibility=active' \
-F showHistory=true \
-F 'filter[key]=value' \
-F 'configuration.application.name=App name' \
-F 'configuration.application.description=App description' \
-F 'configuration.branding.logo=my-url.png' \
-F 'configuration.branding.primaryColor=#3069FE' \
-F 'configuration.branding.buttonColor=#ffffff' \
-F terms.active=true \
-F 'terms.text=Terms and conditions' \
-F showDevInfo=false \
-F 'allowedCountries[]=AF' \
Respuestas #
Content type: application/json
{
"status": true,
"data": {
"id": "string",
"updatedAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"application": "string",
"applicationInfo": {
"id": "string",
"slug": "string",
"name": "string",
"picture": "string"
},
"slug": "string",
"filter": {
"type": "last",
"value": "string",
"ios": "string",
"android": "string",
"windows": "string",
"macos": "string",
"builds": [
{
"buildPlatform": "string",
"id": "string"
}
]
},
"security": "public",
"tags": [
"string"
],
"groups": [
[
"string"
]
],
"visibility": "active",
"showHistory": true,
"showDevInfo": true,
"distributionUrl": "string",
"terms": {
"active": true,
"text": "string"
}
}
}
Content type: application/json
{
"status": false,
"error": {
"code": 5024,
"message": "Slug already used"
}
}
Content type: application/json
{
"status": false,
"error": {
"code": 3002,
"message": "Token Expired"
}
}
Content type: application/json
{
"status": false,
"error": {
"code": 3001,
"message": "Entity not found"
}
}