Create an empty segment
Describes the request and response details of this Moosend API endpoint to create an empty segment in a specific email list.
Request
Parameter | In | Type | Required | Description |
|---|---|---|---|---|
| header | string | true | Determines the expected format and data type to retrieve the response data. Value: |
| path | string | true | The ID of the email list where the segment is created. |
| path | string | true | The supported file format for getting a response. Possible values: |
| query | string | true | The API key of your account. |
| body | string | true | The name of the segment. |
| body | string | false | Specifies how subscribers are returned by your segment based on matching criteria:
|
| body | string | false | Specifies how many criteria-matching subscribers are contained in your segment:
|
| body | integer | false | Specifies the maximum number for |
Response
Status | Description | Headers | Schema |
|---|---|---|---|
| The request is successful. |
| N/A |
Code- the response code. This is0if successful.Error- the response error message. This isnullif successful.Context- the ID of the segment created.