Tribe__Tickets__Editor__REST__V1__Endpoints__Single_ticket::EDIT_args()

{@inheritdoc}


Source

File: src/Tribe/Editor/REST/V1/Endpoints/Single_Ticket.php

	public function EDIT_args() {
		return array_merge(
			array(
				'id' => array(
					'type' => 'integer',
					'in' => 'path',
					'description' => __( 'The ticket post ID', 'event-tickets' ),
					'required' => true,
					'validate_callback' => array( $this->validator, 'is_positive_int' ),
				),
				'post_id' => array(
					'type' => 'integer',
					'in' => 'body',
					'required' => true,
					'validate_callback' => array( $this->validator, 'is_positive_int' ),
				),
				'edit_ticket_nonce' => array(
					'type' => 'string',
					'in' => 'body',
					'required' => true,
					'validate_callback' => array( $this->validator, 'is_string' ),
					'sanitize_callback' => 'sanitize_text_field',
				),
			),
			$this->ticket_args()
		);
	}